{"id":21121474,"url":"https://github.com/oneofone/jsonex","last_synced_at":"2026-04-27T17:02:47.337Z","repository":{"id":153671815,"uuid":"630071030","full_name":"OneOfOne/jsonex","owner":"OneOfOne","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-19T15:57:23.000Z","size":192,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T05:25:08.066Z","etag":null,"topics":["go","json"],"latest_commit_sha":null,"homepage":"https://go.oneofone.dev/jsonex","language":"Go","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/OneOfOne.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":"2023-04-19T15:52:13.000Z","updated_at":"2023-04-19T16:31:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"40fb4e5e-fd1e-4ec0-8eb9-7c66a29b239c","html_url":"https://github.com/OneOfOne/jsonex","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/OneOfOne%2Fjsonex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fjsonex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fjsonex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OneOfOne%2Fjsonex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OneOfOne","download_url":"https://codeload.github.com/OneOfOne/jsonex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243566411,"owners_count":20311875,"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":["go","json"],"created_at":"2024-11-20T03:50:46.585Z","updated_at":"2025-12-29T17:13:38.958Z","avatar_url":"https://github.com/OneOfOne.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonex: A simple fork of `encoding/json`\n\nThis package is a fork of `encoding/json` that allows decoding individual JSON slice and map items. It is intended to be used in conjunction with `jsonex.Decoder` to allow decoding of large JSON files without loading the entire file into memory.\n\nIt adds 2 functions `DecodeKey` and `DecodeValue` that allow decoding of individual JSON slice and map items.\n\nSynced with [Go](https://github.com/golang/go/tree/9cad0cc6e6b2a84134c46ce7069e62de28459f26) on 2023-04-19.\n\n## Example\n\n```go\n\tpackage main\n\n\timport (\n\t\t\"fmt\"\n\t\t\"strings\"\n\n\t\t\"go.oneofone.dev/jsonex\"\n\t)\n\n\tfunc main() {\n\t\tdec := jsonex.NewDecoder(strings.NewReader(`{\"foo\": \"bar\", \"baz\": \"qux\"}`))\n\n\t\t// Decode the first key\n\t\tkey, err := dec.DecodeKey()\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t\tfmt.Println(key)\n\n\t\t// Decode the first value\n\t\tvar value string\n\t\terr = dec.DecodeValue(\u0026value)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t\tfmt.Println(value)\n\n\t\t// Decode the second key\n\t\tkey, err = dec.DecodeKey()\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t\tfmt.Println(key)\n\n\t\t// Decode the second value\n\t\terr = dec.DecodeValue(\u0026value)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t\tfmt.Println(value)\n\t}\n```\n\nMore examples in [decode_ex_test.go](decode_ex_test.go).\n\n## License\n\nSame as Go's `encoding/json` package. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneofone%2Fjsonex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foneofone%2Fjsonex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneofone%2Fjsonex/lists"}