{"id":24918028,"url":"https://github.com/sdvcrx/rejson","last_synced_at":"2026-04-30T00:31:54.187Z","repository":{"id":57562922,"uuid":"329637852","full_name":"sdvcrx/rejson","owner":"sdvcrx","description":"Reshape JSON model. WIP","archived":false,"fork":false,"pushed_at":"2021-03-03T14:10:32.000Z","size":40,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-02T02:28:47.904Z","etag":null,"topics":["go","json"],"latest_commit_sha":null,"homepage":"https://github.com/sdvcrx/rejson","language":"Go","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/sdvcrx.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}},"created_at":"2021-01-14T14:23:03.000Z","updated_at":"2023-06-01T10:55:51.000Z","dependencies_parsed_at":"2022-09-17T14:12:04.222Z","dependency_job_id":null,"html_url":"https://github.com/sdvcrx/rejson","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sdvcrx/rejson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdvcrx%2Frejson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdvcrx%2Frejson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdvcrx%2Frejson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdvcrx%2Frejson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdvcrx","download_url":"https://codeload.github.com/sdvcrx/rejson/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdvcrx%2Frejson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32449715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["go","json"],"created_at":"2025-02-02T09:17:35.622Z","updated_at":"2026-04-30T00:31:54.171Z","avatar_url":"https://github.com/sdvcrx.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rejson\n\n\u003e Reshape JSON model. Based on [gjson](https://github.com/tidwall/gjson) .\n\n[![Github Action](https://github.com/sdvcrx/rejson/workflows/Go/badge.svg)](https://github.com/sdvcrx/rejson/actions)\n[![Go Report Card](https://goreportcard.com/badge/github.com/sdvcrx/rejson)](https://goreportcard.com/report/github.com/sdvcrx/rejson)\n[![codecov](https://codecov.io/gh/sdvcrx/rejson/branch/master/graph/badge.svg?token=WJVJ0WRX3C)](https://codecov.io/gh/sdvcrx/rejson)\n[![Go.dev](https://pkg.go.dev/badge/github.com/sdvcrx/rejson)](https://pkg.go.dev/github.com/sdvcrx/rejson)\n\n## Install\n\nRun `go get`:\n\n```sh\ngo get -u github.com/sdvcrx/rejson\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/sdvcrx/rejson\"\n)\n\ntype User struct {\n\tName string `rejson:\"data.name\"`\n}\n\nfunc main() {\n\tjsonString := `{\n\t\t\"code\":0,\n\t\t\"msg\": null,\n\t\t\"data\":{\"name\":\"John\"}\n\t}`\n\n\tu := User{}\n\trejson.Unmarshal(jsonString, \u0026u)\n\tlog.Printf(\"%#v\", u)\n\t// u =\u003e User{Name:John}\n}\n```\n\n## Performance\n\nBenchmark cases: [bench_test.go](https://github.com/sdvcrx/rejson/blob/master/bench_test.go)\n\n```\nBenchmarkUnmarshalReJSON-4                818850              1443 ns/op              72 B/op            4 allocs/op\nBenchmarkUnmarshalGJSONGet-4             1512412               798 ns/op               0 B/op            0 allocs/op\nBenchmarkUnmarshalEncodingJSON-4          312958              3785 ns/op             464 B/op           11 allocs/op\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdvcrx%2Frejson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdvcrx%2Frejson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdvcrx%2Frejson/lists"}