{"id":18793907,"url":"https://github.com/leberkleber/go-additional-json","last_synced_at":"2026-05-01T06:31:23.631Z","repository":{"id":57515293,"uuid":"239378552","full_name":"leberKleber/go-additional-json","owner":"leberKleber","description":null,"archived":false,"fork":false,"pushed_at":"2020-03-25T15:39:18.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-29T15:46:50.301Z","etag":null,"topics":["golang","golang-library","golang-tool","json","json-parser"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leberKleber.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":"2020-02-09T21:40:47.000Z","updated_at":"2021-12-01T12:32:56.000Z","dependencies_parsed_at":"2022-08-30T04:20:10.107Z","dependency_job_id":null,"html_url":"https://github.com/leberKleber/go-additional-json","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leberKleber%2Fgo-additional-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leberKleber%2Fgo-additional-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leberKleber%2Fgo-additional-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leberKleber%2Fgo-additional-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leberKleber","download_url":"https://codeload.github.com/leberKleber/go-additional-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239718426,"owners_count":19685725,"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","golang-library","golang-tool","json","json-parser"],"created_at":"2024-11-07T21:27:22.671Z","updated_at":"2025-12-29T06:30:14.712Z","avatar_url":"https://github.com/leberKleber.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-additional-json\n\n## Example\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/leberKleber/go-additional-json\"\n\t\"os\"\n)\n\nfunc main() {\n\ts := struct {\n\t\tID          int    `json:\"id\"`\n\t\tName        string `json:\"name\"`\n\t\tDescription struct {\n\t\t\tShort string `json:\"short\"`\n\t\t\tLong  string `json:\"long\"`\n\t\t} `json:\"description\"`\n\t\tOther map[string]string      `json:\"-\" aj:\"other\"`\n\t}{}\n\n\tj := `{\n\t\t\"id\": 54321,\n\t\t\"name\": \"NaMe\",\n\t\t\"description\": {\n\t\t\t\"short\": \"short\",\n\t\t\t\"long\": \"lloonngg\"\n\t\t},\n\t\t\"other1\": \"ootthheerr11\",\n\t\t\"other2\": \"ootthheerr22\"\n\t}`\n\n\terr := additionaljson.DefaultUnmarshaler.Unmarshal([]byte(j), \u0026s)\n\tif err != nil {\n\t\tfmt.Printf(\"a error ocurred: %s\", err)\n\t\tos.Exit(1)\n\t}\n\n\tfmt.Printf(\"unmarshaled:\\n%v\", s)\n}\n```\n\nOutput: \n```text\nunmarshaled:\n{54321 NaMe {short lloonngg} map[other1:ootthheerr11 other2:ootthheerr22]}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleberkleber%2Fgo-additional-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleberkleber%2Fgo-additional-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleberkleber%2Fgo-additional-json/lists"}