{"id":9243583,"url":"https://github.com/jordanmartinez/purescript-json-codecs","last_synced_at":"2026-03-12T02:32:29.646Z","repository":{"id":64726857,"uuid":"555481351","full_name":"JordanMartinez/purescript-json-codecs","owner":"JordanMartinez","description":"A unidirectional value-based JSON codec library.","archived":false,"fork":false,"pushed_at":"2023-10-09T20:02:43.000Z","size":709,"stargazers_count":15,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T10:46:49.683Z","etag":null,"topics":["codec","decoding","encoding","json","purescript"],"latest_commit_sha":null,"homepage":"","language":"PureScript","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/JordanMartinez.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-21T17:05:30.000Z","updated_at":"2023-09-08T22:21:53.000Z","dependencies_parsed_at":"2024-10-28T15:38:14.265Z","dependency_job_id":null,"html_url":"https://github.com/JordanMartinez/purescript-json-codecs","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/JordanMartinez/purescript-json-codecs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordanMartinez%2Fpurescript-json-codecs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordanMartinez%2Fpurescript-json-codecs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordanMartinez%2Fpurescript-json-codecs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordanMartinez%2Fpurescript-json-codecs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JordanMartinez","download_url":"https://codeload.github.com/JordanMartinez/purescript-json-codecs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordanMartinez%2Fpurescript-json-codecs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30413076,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T00:40:14.898Z","status":"online","status_checked_at":"2026-03-12T02:00:07.260Z","response_time":114,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["codec","decoding","encoding","json","purescript"],"created_at":"2024-05-08T00:10:14.035Z","updated_at":"2026-03-12T02:32:29.608Z","avatar_url":"https://github.com/JordanMartinez.png","language":"PureScript","readme":"# purescript-json-codecs\n\nA unidirectional value-based JSON codec library.\n\nWhether this is more performant than other options is still being clarified. See the [benchmarks](./bench).\n\n## Design\n\nSee [DESIGN.md](DESIGN.md) for the reasoning behind this library's design. The rest of this section covers my goals and where I'm at in that process.\n\nAddress gripes with other JSON codec libraries:\n- [`simple-json`](https://pursuit.purescript.org/packages/purescript-simple-json/):\n  - I don't want to have to [fork or copy the repo](https://github.com/justinwoo/purescript-simple-json#how-should-i-actually-use-this-library) to benefit from it / change various type class instances.\n  - I don't want to use your information-poor error type, `NonEmptyList ForeignError`\n- [`argonaut-codec`](https://pursuit.purescript.org/packages/purescript-argonaut-codecs)/[`codec-argonaut`](https://pursuit.purescript.org/packages/purescript-codec-argonaut):\n  - I don't want to use your \"does not allow custom error messages\" type, `JsonDecodeError`\n  - Allow me to specify the order in which to encode something\n  - Allow me the ability to rename fields when encoding/decoding\n\nImprove error messages:\n- on type mismatch errors, show me what you expected AND got, not just what was expected\n- allow me to write custom error messages\n\nProvide record syntax that distinguishes between\n  - when decoding\n    - optional fields: whether a field is required or optional\n    - renaming: decoding a key \"foo\" but putting it in a record label \"bar\"\n  - when encoding\n    - order of fields: the order in which to encode fields\n    - renaming: encoding a record label \"bar\" but encoding it as \"foo\" in the JSON\n  - See [snapshots](./snapshots/Snapshot/)\n\nFor an example of decoding text and encoding examples, see [./test/test-output.txt](./test/test-output.txt)\n\n## License\n\n- [`codec`](https://github.com/garyb/purescript-codec) - Copyright (c) 2019 Gary Burgess (MIT)\n- [`codec-argonaut`](https://github.com/garyb/purescript-codec-argonaut/) - Copyright (c) 2017 Gary Burgess (MIT)\n- [`argonaut-codec`](https://github.com/purescript-contrib/purescript-argonaut-codecs) - Copyright (c) 2020 PureScript Contrib (MIT)\n","funding_links":[],"categories":["Json"],"sub_categories":["Http routing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordanmartinez%2Fpurescript-json-codecs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjordanmartinez%2Fpurescript-json-codecs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordanmartinez%2Fpurescript-json-codecs/lists"}