{"id":21525937,"url":"https://github.com/junbong/strict-json-parser","last_synced_at":"2026-05-15T08:05:54.403Z","repository":{"id":84089995,"uuid":"93716005","full_name":"junbong/strict-json-parser","owner":"junbong","description":"JSON parser for GO language with strict type config.","archived":false,"fork":false,"pushed_at":"2017-06-09T08:05:24.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T05:31:50.339Z","etag":null,"topics":["golang","json","parser","strict","type"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/junbong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-06-08T06:41:44.000Z","updated_at":"2017-06-09T07:51:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"89e06340-2cd2-4baa-a0ab-77175a3b9258","html_url":"https://github.com/junbong/strict-json-parser","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/junbong%2Fstrict-json-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junbong%2Fstrict-json-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junbong%2Fstrict-json-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junbong%2Fstrict-json-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junbong","download_url":"https://codeload.github.com/junbong/strict-json-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244085025,"owners_count":20395523,"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":["golang","json","parser","strict","type"],"created_at":"2024-11-24T01:41:08.249Z","updated_at":"2026-05-15T08:05:54.368Z","avatar_url":"https://github.com/junbong.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Strict JSON Parser\n\nExample:\n```go\njson := `\n  {\n    \"name\": \"Lloyd\",\n    \"age\": 30,\n    \"height\": 184.53,\n    \"weight\": 86.5423,\n    \"score\": -47,\n    \"graduated\": \"true\",\n    \"hobby\": \"Listening Music\",\n    \"languages\": [ \"KR\", \"EN\", \"JP\", \"CN\" ]\n  }\n`\n\n// Type configs\nconfig := `\n  {\n    \"name\": \"text\",\n    \"age\": \"uint\",\n    \"height\": \"float\",\n    \"weight\": \"float32\",\n    \"score\": \"int\",\n    \"graduated\": \"bool\"\n  }\n`\n\np := sparser.New([]byte(config))\n\n// Parser parses given JSON string to map[string]interface{}\nres, err := p.Unmarshal([]byte(json))\n\nfor k, v := range res {\n  fmt.Println(k, v, reflect.TypeOf(v).String())\n}\n```\n\nResult:\n```\nweight 86.5423 float32\nscore -47 int\ngraduated true bool\nhobby Listening Music string\nlanguages [KR EN JP CN] []interface {}\nname Lloyd string\nage 30 uint\nheight 184.53 float32\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunbong%2Fstrict-json-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunbong%2Fstrict-json-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunbong%2Fstrict-json-parser/lists"}