{"id":26832690,"url":"https://github.com/jorgehermo9/gq","last_synced_at":"2025-04-30T10:26:40.204Z","repository":{"id":185288131,"uuid":"572098405","full_name":"jorgehermo9/gq-legacy","owner":"jorgehermo9","description":"A fast and feature rich JSON filtering tool","archived":false,"fork":false,"pushed_at":"2024-03-19T22:29:12.000Z","size":758,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T10:25:38.588Z","etag":null,"topics":["filtering","graphql","json"],"latest_commit_sha":null,"homepage":"","language":"C++","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/jorgehermo9.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}},"created_at":"2022-11-29T14:50:57.000Z","updated_at":"2024-03-19T19:06:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ada0f3f-0218-4b7a-be65-e04e7950ed5f","html_url":"https://github.com/jorgehermo9/gq-legacy","commit_stats":null,"previous_names":["jorgehermo9/gq"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorgehermo9%2Fgq-legacy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorgehermo9%2Fgq-legacy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorgehermo9%2Fgq-legacy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorgehermo9%2Fgq-legacy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jorgehermo9","download_url":"https://codeload.github.com/jorgehermo9/gq-legacy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251684345,"owners_count":21627115,"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":["filtering","graphql","json"],"created_at":"2025-03-30T15:18:15.532Z","updated_at":"2025-04-30T10:26:40.130Z","avatar_url":"https://github.com/jorgehermo9.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e \u003ch1\u003e\u003cstrong\u003egq\u003c/strong\u003e\u003c/h1\u003e \u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n\nA **fast** and **feature rich** JSON filtering tool\n\n\u003c/div\u003e\n\n#\n\n\u003cdetails open\u003e\n\u003csummary\u003e\u003cstrong\u003e\u0026nbsp;FEATURES \u0026nbsp;✨\u003c/strong\u003e\u003c/summary\u003e\n\u003cbr\u003e\n\n- **Filtering**: filter JSON objects getting only the fields you want, using a GraphQL-like syntax.\n- **Url and file compatibility**: it can read as input a JSON file, got from a url, a file or from stdin.\n- **All JSON types**: it supports all JSON types including arrays, objects...\n- **Aliases**: you can use aliases to rename fields in the output file.\n- **Conditions**: you can establish conditions that field's values must meet.\n  (To see a detailed list of available operations refer to [Operations](#operations))\n- **Error proof**: (almost) all possible errors and warnings are handled and reported to the user using a custom lexer and parser.\n\n\u003c/details\u003e\n\n#\n\n\u003cdetails open\u003e\n\u003csummary\u003e\u003cstrong\u003e\u0026nbsp;INSTALLATION \u0026nbsp;🛠\u003c/strong\u003e\u003c/summary\u003e\n\u003cbr\u003e\n\n...\n\n\u003c/details\u003e\n\n#\n\n\u003cdetails open\u003e\n\u003csummary\u003e\u003cstrong\u003e\u0026nbsp;USAGE \u0026nbsp;🪧\u003c/strong\u003e\u003c/summary\u003e\n\nLet's see how easy is to use `gq` to filter a JSON file.\n\nOver this JSON:\n\n```json\n{\n  \"user\": \"John\",\n  \"bill\": {\n    \"purchaser\": \"One S.A\",\n    \"seller\": \"Two S.A\",\n    \"products\": [\n      {\n        \"name\": \"Product 1\",\n        \"quantity\": 3,\n        \"price\": { \"value\": 1.0, \"currency\": \"EUR\" },\n        \"tags\": [\"tag1\", \"tag2\"]\n      },\n      {\n        \"name\": \"Product 2\",\n        \"quantity\": 1,\n        \"price\": { \"value\": 2.0, \"currency\": \"USD\" },\n        \"tags\": [\"tag3\"]\n      }\n    ]\n  }\n}\n```\n\n- We can use this simple graphql-like query to get only the name and price of each product:\n\n```graphql\n{\n  bill {\n    products {\n      name\n      price\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorgehermo9%2Fgq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjorgehermo9%2Fgq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorgehermo9%2Fgq/lists"}