json-stream
json-stream copied to clipboard
Parsing JSON is a minefield
Recently I read article Parsing JSON is a minefield and got interested in testing json_stream
with very detailed dataset from article.
There is two news!
Good one: json_stream
passed all positive cases (at least with json_stream.load
)
Not a good one: apparently there is some problems with json_stream.visit
and with json_stream.load
in negative cases, according to tests. Some of them don't seems like a big problem (like threatning [ ,""]
as valid JSON), but others seems really problematic (like treatning [3[4]]
as valid JSON).
There is repository with tests I wrote from article's materials - json-stream-tests
And test log attached as well. 2024-01-17 00:53:05.284817606.log