{"id":20464525,"url":"https://github.com/bytedance/json","last_synced_at":"2025-05-08T23:32:40.489Z","repository":{"id":57488173,"uuid":"156519665","full_name":"bytedance/json","owner":"bytedance","description":"JSON standard package extension library","archived":false,"fork":false,"pushed_at":"2019-05-16T03:27:18.000Z","size":188,"stargazers_count":32,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-19T03:01:46.529Z","etag":null,"topics":["json"],"latest_commit_sha":null,"homepage":"","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/bytedance.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":"2018-11-07T09:10:12.000Z","updated_at":"2024-02-21T06:47:24.000Z","dependencies_parsed_at":"2022-08-29T15:01:20.098Z","dependency_job_id":null,"html_url":"https://github.com/bytedance/json","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/bytedance%2Fjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytedance%2Fjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytedance%2Fjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytedance%2Fjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bytedance","download_url":"https://codeload.github.com/bytedance/json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224784837,"owners_count":17369461,"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":["json"],"created_at":"2024-11-15T13:15:32.190Z","updated_at":"2024-11-15T13:15:33.145Z","avatar_url":"https://github.com/bytedance.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json\n\nJSON standard package extension library.\n\n## Extension feature\n\n1. In the case of a non-cyclic combination, using zero value('[]' or '{}') instead of null.\n\n```go\nfunc ExampleMarshalNotnull() {\n\tvar a *A\n\tb, _ := json.Marshal(a)\n\tfmt.Println(string(b))\n\t// Output:\n\t// {\"List\":[],\"Map\":{},\"Children\":[],\"B\":{\"ListB\":null,\"MapB\":null,\"A\":null,\"B\":null},\"MapPtr\":{}}\n}\n\ntype A struct {\n\tList     []string\n\tMap      map[string]string\n\tChildren []*A\n\tB        *B\n\tMapPtr   *map[string]string\n}\n\ntype B struct {\n\tListB []string\n\tMapB  map[string]string\n\tA     *A\n\tB     *B\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytedance%2Fjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytedance%2Fjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytedance%2Fjson/lists"}