Rails provides an excellent XML Builder by default to build RSS and ATOM feeds, but nothing to help you build complex and custom JSON data structures. JSON Builder is here to help.
When non-pretty json is generated, single quotes in strings are being escaped with a backslash. This is invalid json and is causing the generated content not to parse.
When non-pretty json is generated, single quotes in strings are being escaped with a backslash. This is invalid json and is causing the generated content not to parse.