{"id":17145078,"url":"https://github.com/crufter/nested","last_synced_at":"2025-04-13T11:12:52.424Z","repository":{"id":3393493,"uuid":"4442539","full_name":"crufter/nested","owner":"crufter","description":"This Go package makes it easier to handle nested JSON documents.","archived":false,"fork":false,"pushed_at":"2021-09-03T14:56:15.000Z","size":10,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T11:12:47.307Z","etag":null,"topics":[],"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/crufter.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}},"created_at":"2012-05-25T07:18:40.000Z","updated_at":"2023-10-09T07:44:05.000Z","dependencies_parsed_at":"2022-09-05T14:11:55.588Z","dependency_job_id":null,"html_url":"https://github.com/crufter/nested","commit_stats":null,"previous_names":["opesun/jsonp","opesun/nested"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crufter%2Fnested","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crufter%2Fnested/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crufter%2Fnested/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crufter%2Fnested/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crufter","download_url":"https://codeload.github.com/crufter/nested/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703198,"owners_count":21148118,"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":[],"created_at":"2024-10-14T21:04:24.667Z","updated_at":"2025-04-13T11:12:52.395Z","avatar_url":"https://github.com/crufter.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"nested\n=====\n\nThe Nested Go package makes it easier to handle (too) big nested JSON structures.\n\nHow to use\n=============\nLets say you have the next JSON:\n```\nj := `{\n\t\"hello\": {\n\t\t\"this\": {\n\t\t\t\"is\": {\n\t\t\t\t\"an\": {\n\t\t\t\t\t\"example\": \"hi\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}`\n```\n\nNow if you unmarshal it to u (pseudocode)\n```\nu := unmarshal(j)\n```\n\nYou will have a hard time accessing members in u, like\n```\nu.(map[string]interface{})[\"hello\"].(map[string]interface{})[\"this\"].(map[string]interface{})\t//... etc etc\n```\n\nBut not with package Nested!\n```\nmagic, ok := nested.Get(u, \"hello.this.is.an.example\")\nfmt.Println(magic, ok)\n```\n\nWill output something like:\n```\n\"hi\" true\n```\n\nIt's magic, really!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrufter%2Fnested","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrufter%2Fnested","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrufter%2Fnested/lists"}