{"id":20537968,"url":"https://github.com/dmjio/json-test","last_synced_at":"2026-04-18T12:03:05.697Z","repository":{"id":146242287,"uuid":"152016266","full_name":"dmjio/json-test","owner":"dmjio","description":"JSON parser written with Happy / Alex","archived":false,"fork":false,"pushed_at":"2024-12-14T01:07:09.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-16T14:32:26.078Z","etag":null,"topics":["alex","happy","haskell","json","parser-generator"],"latest_commit_sha":null,"homepage":"https://tools.ietf.org/html/rfc7159.html","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmjio.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":"2018-10-08T03:58:08.000Z","updated_at":"2024-12-14T01:07:13.000Z","dependencies_parsed_at":"2024-01-28T00:12:34.332Z","dependency_job_id":null,"html_url":"https://github.com/dmjio/json-test","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/dmjio%2Fjson-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmjio%2Fjson-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmjio%2Fjson-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmjio%2Fjson-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmjio","download_url":"https://codeload.github.com/dmjio/json-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242144495,"owners_count":20078966,"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":["alex","happy","haskell","json","parser-generator"],"created_at":"2024-11-16T00:43:43.904Z","updated_at":"2026-04-18T12:03:05.201Z","avatar_url":"https://github.com/dmjio.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"json-test\n==================\n\nA specification abiding implementation of [JSON](https://www.json.org/) [RFC-7159](https://tools.ietf.org/html/rfc7159)\nusing [alex](https://www.haskell.org/alex/) and [happy](https://www.haskell.org/happy/).\n\n### Usage\n\nGiven an example `JSON` file.\n```json\n{ \"foo\" : [{\"bar\": [1,2,true,false, {}]}], \"baz\": { \"woz\" : [] } }\n```\n\nThe following code will parse the above into `aeson`'s `Value` type (via `alex` and `happy`).\n```haskell\nmodule Main (main) where\n\nimport JSON.Parser (parse)\n\nparseWithJSONTest :: IO ()\nparseWithJSONTest =\n  print =\u003c\u003c parse \u003c$\u003e readFile fileName\n```\n\nto yield\n\n```haskell\nRight (Object (fromList [\n  (\"foo\", Array [Object (fromList [\n    (\"bar\",Array [Number 1.0,Number 2.0,Bool True,Bool False,Object (fromList [])])])])\n   ,(\"baz\",Object (fromList [(\"woz\",Array [])\n  ]))\n]))\n```\n\n### Build\n```bash\nnix-build\n```\n\n### Develop\n```bash\nnix-shell\n```\n\n### Benchmark\n```bash\nnix-build \u0026\u0026 ./result/bin/example -o index.html \u0026\u0026 open index.html\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmjio%2Fjson-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmjio%2Fjson-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmjio%2Fjson-test/lists"}