phadej / relaxed-json

Relaxed JSON is strict superset JSON, relaxing strictness of vanilla JSON
http://oleg.fi/relaxed-json/
Other
80 stars 8 forks source link

SyntaxError: Unexpected number. Edge case with numbers as object keys. #12

Closed 0o-de-lally closed 8 years ago

0o-de-lally commented 8 years ago

SyntaxError: Unexpected number is generated when you try RJSON.parse( { 2: "text"})

It's an unusual edge case but it would be nice to hand it as { "2" : "text" }

0o-de-lally commented 8 years ago

Duplicate