Skip to content

Incorporate tests from "Parsing JSON as a Minefield" #1264

Open
@vielmetti

Description

@vielmetti

The article http://seriot.ch/parsing_json.html from @nst has an exhaustive comparison of various JSON parsers, which does not include jq. It also has a whole set of test cases, which are available at https://github.com/nst/JSONTestSuite

At least one of the test cases that's supposed to fail, at "n_structure_object_with_trailing_garbage.json", is parsed by jq as correct.

The PR that would close this is a script that would run each of these tests in turn and validate that they produce the expected results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions