{"id":17700590,"url":"https://github.com/cdown/json-key-from-value","last_synced_at":"2026-02-14T18:01:34.825Z","repository":{"id":221628130,"uuid":"754928674","full_name":"cdown/json-key-from-value","owner":"cdown","description":"Find the key or index that provides a value in a big blob of JSON.","archived":false,"fork":false,"pushed_at":"2025-02-12T13:59:37.000Z","size":72,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T14:42:16.982Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/cdown.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}},"created_at":"2024-02-09T03:26:08.000Z","updated_at":"2024-12-03T21:33:15.000Z","dependencies_parsed_at":"2024-02-09T04:31:24.188Z","dependency_job_id":"8da04ec3-698c-480c-9a9e-ee2aefefe873","html_url":"https://github.com/cdown/json-key-from-value","commit_stats":null,"previous_names":["cdown/json-key-from-value"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cdown/json-key-from-value","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fjson-key-from-value","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fjson-key-from-value/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fjson-key-from-value/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fjson-key-from-value/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdown","download_url":"https://codeload.github.com/cdown/json-key-from-value/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fjson-key-from-value/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29451904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-24T17:42:36.222Z","updated_at":"2026-02-14T18:01:34.803Z","avatar_url":"https://github.com/cdown.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# json-key-from-value | [![Tests](https://img.shields.io/github/actions/workflow/status/cdown/json-key-from-value/ci.yml?branch=master)](https://github.com/cdown/json-key-from-value/actions?query=branch%3Amaster)\n\nIf you often have big, unwieldy blobs of JSON which you have very deep trees\nin, it can be a pain to go from a value that you know is the field you want to\nretrieve to actually producing the correct selector.\n\njson-key-from-value will, given some JSON and a value to find, tell you how to\nselect it. If multiple keys or indexes are possible, they will all be printed.\n\n## Usage\n\nFor example, given the following JSON:\n\n```\n{\"data\":[{\"foo\":[\n    {\"bar\":[\n        {\"id\":1,\"name\":\"yes\"},\n        {\"id\":2,\"name\":\"no\"}\n    ]},\n    {\"baz\":[\n        {\"id\":2,\"name\":null}\n    ]}]\n},{\"qux\":[\n    {\"quux\":\n        [[1,42],[2,2],[true, false]]\n    }]\n}]}\n```\n\n    % json-key-from-value '\"yes\"' \u003c json\n    [\"data\"][0][\"foo\"][0][\"bar\"][0][\"name\"]\n\n    % json-key-from-value 2 \u003c json\n    [\"data\"][0][\"foo\"][0][\"bar\"][1][\"id\"]\n    [\"data\"][0][\"foo\"][1][\"baz\"][0][\"id\"]\n    [\"data\"][1][\"qux\"][0][\"quux\"][1][0]\n    [\"data\"][1][\"qux\"][0][\"quux\"][1][1]\n\n    % json-key-from-value true \u003c json\n    [\"data\"][1][\"qux\"][0][\"quux\"][2][0]\n\n    % json-key-from-value null \u003c json\n    [\"data\"][0][\"foo\"][1][\"baz\"][0][\"name\"]\n\n## Installation\n\n    cargo install json-key-from-value\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdown%2Fjson-key-from-value","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdown%2Fjson-key-from-value","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdown%2Fjson-key-from-value/lists"}