{"id":30396179,"url":"https://github.com/linkdata/jq","last_synced_at":"2026-02-12T11:23:11.837Z","repository":{"id":309529737,"uuid":"1036485897","full_name":"linkdata/jq","owner":"linkdata","description":"Go JSON structure query path getter/setter","archived":false,"fork":false,"pushed_at":"2025-08-20T13:32:47.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-20T14:30:39.806Z","etag":null,"topics":["golang","json","nodependencies"],"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/linkdata.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,"zenodo":null}},"created_at":"2025-08-12T06:33:21.000Z","updated_at":"2025-08-20T13:32:51.000Z","dependencies_parsed_at":"2025-08-12T12:53:31.882Z","dependency_job_id":null,"html_url":"https://github.com/linkdata/jq","commit_stats":null,"previous_names":["linkdata/jq"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/linkdata/jq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdata%2Fjq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdata%2Fjq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdata%2Fjq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdata%2Fjq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linkdata","download_url":"https://codeload.github.com/linkdata/jq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkdata%2Fjq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271484977,"owners_count":24767768,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","json","nodependencies"],"created_at":"2025-08-21T12:52:12.266Z","updated_at":"2026-02-12T11:23:11.832Z","avatar_url":"https://github.com/linkdata.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build](https://github.com/linkdata/jq/actions/workflows/build.yml/badge.svg)](https://github.com/linkdata/jq/actions/workflows/build.yml)\n[![coverage](https://github.com/linkdata/jq/blob/coverage/main/badge.svg)](https://html-preview.github.io/?url=https://github.com/linkdata/jq/blob/coverage/main/report.html)\n[![goreport](https://goreportcard.com/badge/github.com/linkdata/jq)](https://goreportcard.com/report/github.com/linkdata/jq)\n[![Docs](https://godoc.org/github.com/linkdata/jq?status.svg)](https://godoc.org/github.com/linkdata/jq)\n\n# jq\n\nGo JSON structure query path getter/setter\n\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\n\t\"github.com/linkdata/jq\"\n)\n\nconst rawJson = `{\n  \"name\": \"John Doe\",\n  \"age\": 30,\n  \"isStudent\": false,\n  \"hobbies\": [\"reading\", \"hiking\", \"gaming\"],\n  \"address\": {\n    \"street\": \"123 Main St\",\n    \"city\": \"Anytown\",\n    \"zip\": \"12345\"\n  }\n}`\n\ntype Address struct {\n\tStreet string `json:\"street\"`\n\tCity   string `json:\"city\"`\n\tZip    string `json:\"zip\"`\n}\n\ntype Person struct {\n\tName      string   `json:\"name\"`\n\tAge       int      `json:\"age\"`\n\tIsStudent bool     `json:\"isStudent\"`\n\tHobbies   []string `json:\"hobbies\"`\n\tAddress   Address  `json:\"address\"`\n}\n\nfunc main() {\n\tvar person Person\n\tvar err error\n\tif err = json.Unmarshal([]byte(rawJson), \u0026person); err == nil {\n\t\tvar firsthobby string\n\t\tif firsthobby, err = jq.GetAs[string](\u0026person, \"hobbies.0\"); err == nil {\n\t\t\tfmt.Println(firsthobby)\n\t\t\tvar address Address\n\t\t\tif address, err = jq.GetAs[Address](\u0026person, \"address\"); err == nil {\n\t\t\t\tfmt.Println(address.City)\n\t\t\t}\n\t\t}\n\t}\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\t// Output:\n\t// reading\n\t// Anytown\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkdata%2Fjq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkdata%2Fjq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkdata%2Fjq/lists"}