Welcome! Please see the About page for a little more info on how this works.

+1 vote
in data.json by
recategorized by

It seems that the "standard" json parser is happily parsing invalid json as shown below
user=> (require '[clojure.data.json :as j]) nil user=> (j/read-str "{\"a\": 123,,}") {"a" 123} user=> (j/read-str "{\"a\": 123,\"b\",}") {"a" 123}
I know other libraries exist (eg jsonista, cheshire) but it doesn't look good that what seems to be the "standard" json parser (as per the link on http://json.org/ and the fact that it lives inside the main clojure github org) is broken.

(Logged as https://clojure.atlassian.net/browse/DJSON-29)

1 Answer

+3 votes
by
selected by
 
Best answer

This has been logged as https://clojure.atlassian.net/browse/DJSON-29 and fixed and a new version org.clojure/data.json 0.2.7 with the fix is available.

...