{"id":13441146,"url":"https://github.com/nst/JSONTestSuite","last_synced_at":"2025-03-20T11:35:33.843Z","repository":{"id":38834660,"uuid":"71723822","full_name":"nst/JSONTestSuite","owner":"nst","description":"A comprehensive test suite for RFC 8259 compliant JSON parsers","archived":false,"fork":false,"pushed_at":"2023-11-02T13:41:16.000Z","size":86932,"stargazers_count":818,"open_issues_count":42,"forks_count":138,"subscribers_count":33,"default_branch":"master","last_synced_at":"2024-01-25T07:33:58.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-23T19:14:09.000Z","updated_at":"2024-01-21T22:43:13.000Z","dependencies_parsed_at":"2023-11-02T15:45:32.267Z","dependency_job_id":null,"html_url":"https://github.com/nst/JSONTestSuite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nst%2FJSONTestSuite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nst%2FJSONTestSuite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nst%2FJSONTestSuite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nst%2FJSONTestSuite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nst","download_url":"https://codeload.github.com/nst/JSONTestSuite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221752320,"owners_count":16874961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T03:01:30.431Z","updated_at":"2025-03-20T11:35:33.831Z","avatar_url":"https://github.com/nst.png","language":"C++","funding_links":[],"categories":["C++","Testing"],"sub_categories":[],"readme":"# JSON Parsing Test Suite\nA comprehensive test suite for RFC 8259 compliant JSON parsers\n\nThis repository was created as an appendix to the article [Parsing JSON is a Minefield 💣](http://seriot.ch/parsing_json.php).\n\n**/parsers/**\n\nThis directory contains several parsers and tiny wrappers to turn the parsers into JSON validators, by returning a specific value.\n\n- `0` the parser did accept the content\n- `1` the parser did reject the content\n- `\u003e1` the process did crash\n- `timeout` happens after 5 seconds\n\n**/test\\_parsing/**\n\nThe name of these files tell if their contents should be accepted or rejected.\n\n- `y_` content must be accepted by parsers\n- `n_` content must be rejected by parsers\n- `i_` parsers are free to accept or reject content\n\n**/test\\_transform/**\n\nThese files contain weird structures and characters that parsers may understand differently, eg:\n\n- huge numbers\n- dictionaries with similar keys\n- NULL characters\n- escaped invalid strings\n\nThese files were used to produce `results/transform.html`.\n\n**/run_tests.py**\n\nRun all parsers with all files:\n\n    $ python3 run_tests.py\n\nRun all parsers with a specific file:\n\n    $ python3 run_tests.py file.json\n\nRun specific parsers with all files:\n\n    $ echo '[\"Python 2.7.10\", \"Python 3.5.2\"]' \u003e python_only.json\n    $ python3 run_tests.py --filter=python_only.json\n\nThe script writes logs in `results/logs.txt`.\n\nThe script then reads `logs.txt` and generates `results/parsing.html`.\n\n**/results/**\n\n\u003cimg src=\"results/pruned_results.png\" alt=\"JSON Parsing Tests\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnst%2FJSONTestSuite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnst%2FJSONTestSuite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnst%2FJSONTestSuite/lists"}