strict mode should fail parser on invalid object keys / keys lacking values

Issue #15 duplicate
Anonymous created an issue

There does not appear to be a strict check that the key of a key - value pair is a string, as required by the JSON standard.

Should fail strict: { "foo" : "bar", [ 0 ] : "a" } Should fail strict: { "foo" : "bar", "a" }

Not marking as bug since you're not primarily shooting for strictness, but it does make the process of parsing trickier if you need to guard against ill-formed JSON.

Thanks for this nice project.

Comments (2)

  1. Log in to comment