{"id":19895251,"url":"https://github.com/venthur/python-gron","last_synced_at":"2025-05-02T20:30:51.722Z","repository":{"id":31437454,"uuid":"127877869","full_name":"venthur/python-gron","owner":"venthur","description":"Make JSON grep-able, a Python implementation of gron.","archived":false,"fork":false,"pushed_at":"2024-11-25T08:11:18.000Z","size":71,"stargazers_count":16,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T05:11:33.537Z","etag":null,"topics":["gron","json","python"],"latest_commit_sha":null,"homepage":"https://gron.readthedocs.io","language":"Python","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/venthur.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2018-04-03T08:41:56.000Z","updated_at":"2025-03-29T22:44:39.000Z","dependencies_parsed_at":"2024-08-23T13:33:03.400Z","dependency_job_id":"1323f7cf-9aa5-4fbd-a967-90990cd929ce","html_url":"https://github.com/venthur/python-gron","commit_stats":{"total_commits":86,"total_committers":4,"mean_commits":21.5,"dds":"0.34883720930232553","last_synced_commit":"023a3697ef8a02d1465921f2afc443db541d1e1a"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venthur%2Fpython-gron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venthur%2Fpython-gron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venthur%2Fpython-gron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venthur%2Fpython-gron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/venthur","download_url":"https://codeload.github.com/venthur/python-gron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252104010,"owners_count":21695400,"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":["gron","json","python"],"created_at":"2024-11-12T18:36:04.309Z","updated_at":"2025-05-02T20:30:51.314Z","avatar_url":"https://github.com/venthur.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-gron\n\nMake JSON grep-able, a Python implementation of\n[gron](https://github.com/tomnomnom/gron).\n\n\n## Installation\n\n`gron` is available on [PyPi](https://pypi.org/project/gron/), to install it\nuse:\n\n```bash\n$ pip install gron\n```\n\n\n## Documentation\n\nThe API documentation can be found\n[here](http://gron.readthedocs.io/en/latest/).\n\n\n## Usage\n\nGiven a JSON file with the content:\n\n```json\n{\n  \"one\": 1,\n  \"two\": 2.2,\n  \"three-b\": \"3\",\n  \"four\": [1,2,3,4],\n  \"five\": {\n    \"alpha\": [\"fo\", \"fum\"],\n    \"beta\": {\n      \"hey\": \"How's tricks?\"\n    }\n  },\n  \"abool\": true,\n  \"abool2\": false,\n  \"isnull\": null,\n  \"id\": 66912849\n}\n```\n\nyou can use `gron` like this:\n\n```bash\n$ gron tests/data/one.json\njson = {};\njson.abool = true;\njson.abool2 = false;\njson.five = {};\njson.five.alpha = [];\njson.five.alpha[0] = \"fo\";\njson.five.alpha[1] = \"fum\";\njson.five.beta = {};\njson.five.beta.hey = \"How's tricks?\";\njson.four = [];\njson.four[0] = 1;\njson.four[1] = 2;\njson.four[2] = 3;\njson.four[3] = 4;\njson.id = 66912849;\njson.isnull = null;\njson.one = 1;\njson.two = 2.2;\njson[\"three-b\"] = \"3\";``\n```\n\nWithout any arguments `gron` will read from `STDIN`:\n\n```bash\n$ cat tests/data/one.json | gron\njson = {};\njson.abool = true;\njson.abool2 = false;\njson.five = {};\njson.five.alpha = [];\njson.five.alpha[0] = \"fo\";\njson.five.alpha[1] = \"fum\";\njson.five.beta = {};\njson.five.beta.hey = \"How's tricks?\";\njson.four = [];\njson.four[0] = 1;\njson.four[1] = 2;\njson.four[2] = 3;\njson.four[3] = 4;\njson.id = 66912849;\njson.isnull = null;\njson.one = 1;\njson.two = 2.2;\njson[\"three-b\"] = \"3\";\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fventhur%2Fpython-gron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fventhur%2Fpython-gron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fventhur%2Fpython-gron/lists"}