{"id":13311784,"url":"https://github.com/qri-io/jsonpointer","last_synced_at":"2025-04-12T07:33:13.827Z","repository":{"id":57482290,"uuid":"117362499","full_name":"qri-io/jsonpointer","owner":"qri-io","description":"golang implementation of IETF RFC6901: https://tools.ietf.org/html/rfc6901","archived":false,"fork":false,"pushed_at":"2020-05-07T12:57:34.000Z","size":15,"stargazers_count":16,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T03:11:13.394Z","etag":null,"topics":["golang","ietf","json"],"latest_commit_sha":null,"homepage":null,"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/qri-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-01-13T17:14:45.000Z","updated_at":"2024-03-22T08:45:21.000Z","dependencies_parsed_at":"2022-09-02T06:11:57.345Z","dependency_job_id":null,"html_url":"https://github.com/qri-io/jsonpointer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qri-io%2Fjsonpointer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qri-io%2Fjsonpointer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qri-io%2Fjsonpointer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qri-io%2Fjsonpointer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qri-io","download_url":"https://codeload.github.com/qri-io/jsonpointer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248534411,"owners_count":21120322,"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","ietf","json"],"created_at":"2024-07-29T18:02:29.722Z","updated_at":"2025-04-12T07:33:13.571Z","avatar_url":"https://github.com/qri-io.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Qri](https://img.shields.io/badge/made%20by-qri-magenta.svg?style=flat-square)](https://qri.io)\n[![GoDoc](https://godoc.org/github.com/qri-io/jsonpointer?status.svg)](http://godoc.org/github.com/qri-io/jsonpointer)\n[![License](https://img.shields.io/github/license/qri-io/jsonpointer.svg?style=flat-square)](./LICENSE)\n[![Codecov](https://img.shields.io/codecov/c/github/qri-io/jsonpointer.svg?style=flat-square)](https://codecov.io/gh/qri-io/jsonpointer)\n[![CI](https://img.shields.io/circleci/project/github/qri-io/jsonpointer.svg?style=flat-square)](https://circleci.com/gh/qri-io/jsonpointer)\n[![Go Report Card](https://goreportcard.com/badge/github.com/qri-io/jsonpointer)](https://goreportcard.com/report/github.com/qri-io/jsonpointer)\n\n\n# jsonpointer\ngolang implementation of [IETF RFC6901](https://tools.ietf.org/html/rfc6901):\n_JSON Pointer defines a string syntax for identifying a specific value within a JavaScript Object Notation (JSON) document._\n\n### Installation\ninstall with:\n`go get -u github.com/qri-io/jsonpointer`\n\n\n### Usage\nHere's a quick example pulled from the [godoc](https://godoc.org/github.com/qri-io/jsonpointer):\n\n```go\nimport (\n  \"encoding/json\"\n  \"fmt\"\n  \"github.com/qri-io/jsonpointer\"\n)\n\nvar document = []byte(`{ \n  \"foo\": {\n    \"bar\": {\n      \"baz\": [0,\"hello!\"]\n    }\n  }\n}`)\n\nfunc main() {\n  parsed := map[string]interface{}{}\n  // be sure to handle errors in real-world code!\n  json.Unmarshal(document, \u0026parsed)\n\n  // parse a json pointer. Pointers can also be url fragments\n  // the following are equivelent pointers:\n  // \"/foo/bar/baz/1\"\n  // \"#/foo/bar/baz/1\"\n  // \"http://example.com/document.json#/foo/bar/baz/1\"\n  ptr, _ := jsonpointer.Parse(\"/foo/bar/baz/1\")\n\n  // evaluate the pointer against the document\n  // evaluation always starts at the root of the document\n  got, _ := ptr.Eval(parsed)\n\n  fmt.Println(got)\n  // Output: hello!\n}\n\n```\n\n### License\nMIT\n\n### Issues \u0026 Contributions\nContributions \u0026 Issues are more than welcome! Everything happens over on this repo's [github page](https://github.com/qri-io/jsonpointer)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqri-io%2Fjsonpointer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqri-io%2Fjsonpointer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqri-io%2Fjsonpointer/lists"}