Skip to content

Parsing JSON is a minefield #55

@jorektheglitch

Description

@jorektheglitch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions