flori/json — Issue #111: JSON library should not allow comments
Author: mattv
Created: 2011-12-16 20:45:08+00:00
State: open

The JSON spec does not allow comments. This gem allows comments.

Test:

require 'json'
JSON.parse("{ \"someKey\":\"someValue\", /* Some comment */ \"someOtherKey\":[\"some\",\"array\"]}")

Result:

{"someKey"=>"someValue", "someOtherKey"=>["some", "array"]}

Because of this, the following claim from the README is false: "This is a implementation of the JSON specification according to RFC 4627 www.ietf.org/rfc/rfc4627.txt"