{"id":34839040,"url":"https://github.com/infiniteloopcloud/json","last_synced_at":"2026-04-25T10:36:57.352Z","repository":{"id":79220545,"uuid":"605113780","full_name":"infiniteloopcloud/json","owner":"infiniteloopcloud","description":"Copy of Go's built-in json with IsZero support","archived":false,"fork":false,"pushed_at":"2023-02-26T18:32:40.000Z","size":250,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-25T10:36:53.099Z","etag":null,"topics":["golang","golang-json","golang-library","golang-package","json"],"latest_commit_sha":null,"homepage":"","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/infiniteloopcloud.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-02-22T13:29:06.000Z","updated_at":"2023-12-06T12:27:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"830f604f-a696-455b-8359-49df99d34104","html_url":"https://github.com/infiniteloopcloud/json","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/infiniteloopcloud/json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infiniteloopcloud%2Fjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infiniteloopcloud%2Fjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infiniteloopcloud%2Fjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infiniteloopcloud%2Fjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infiniteloopcloud","download_url":"https://codeload.github.com/infiniteloopcloud/json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infiniteloopcloud%2Fjson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32259472,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"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":["golang","golang-json","golang-library","golang-package","json"],"created_at":"2025-12-25T16:58:48.544Z","updated_at":"2026-04-25T10:36:57.347Z","avatar_url":"https://github.com/infiniteloopcloud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json\n\nCopy of Golang's json library with IsZero feature from [CL13977](https://go-review.googlesource.com/c/go/+/13977/)\n\n## Usage\n\nExactly the same as Go's [JSON](https://pkg.go.dev/encoding/json). Plus...\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/infiniteloopcloud/json\"\n)\n\ntype nullString struct {\n\tValid  bool\n\tString string\n}\n\nfunc (n nullString) IsZero() bool {\n\treturn !n.Valid\n}\n\ntype RandomDataSet struct {\n\tData1 nullString `json:\"data1,omitempty\"`\n\tData2 nullString `json:\"data2,omitempty\"`\n}\n\nfunc main() {\n\tresult, err := json.Marshal(RandomDataSet{Data1: nullString{Valid: false, String: \"test\"}})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(string(result))\n\t// Output: {}\n\n\tresult, err = json.Marshal(RandomDataSet{Data1: nullString{Valid: true, String: \"test\"}})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(string(result))\n\t// Output: {\"data1\":{\"Valid\":true,\"String\":\"test\"}}\n}\n```\n\n## Contribution\n\nThese changes automatically generated by [jsongen](https://github.com/infiniteloopcloud/jsongen).\n\n```shell\ngit checkout -b go1.x.x\njsongen --version go1.x.x --destination .\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfiniteloopcloud%2Fjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfiniteloopcloud%2Fjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfiniteloopcloud%2Fjson/lists"}