mediastandardstrust/superfastmatch — pull request #1 by dvogel (2012-01-24 21:37:23+00:00)
Title: JSON autoescape isn't JSON

The JSON API responses had \x character escapes in the strings, which is invalid JSON. I tracked this back to the SFM JSON templates. They use ctemplate's JSON autoescaping which actually uses the :javascript_escape modifier rather than the :json_escape modifier. Using :json_escape spits out the proper \u unicode character escapes.

I also removed the new Date() in favor of a integer or string literal. While the Date constructor works in Javascript, it's not valid JSON and it makes it a headache to consume in other languages.