mapfish/mapfish-print — pull request #17 by snkashis (2012-06-28 02:21:59+00:00)
Title: Modify sample JSON files to conform to spec

Some of the sample files are invalid JSON currently, and this can present problems for people who may want to parse them in the process of templating them or using a network client to post them.

from http://simonwillison.net/2006/oct/11/json/
"In JSON (unlike in JavaScript) these MUST be double-quoted strings. In fact, ALL strings in JSON must be enclosed in double quotes (JavaScript also allows single quotes; JSON does not)."
"This stuff matters. Python’s excellent simplejson module is a strict parser; it refuses to consume invalid JSON."

In my example, ruby's JSON module was kicking them out as invalid.

So I modified them to pass validation.Basically it was a lot of double-quotes needed.Now these pass through JSONLint without warnings.

I understand these are sample files, but people often use files such as these as a starting point for their own designs, so why not give them a leg up and ease confusion?