{"id":17502673,"url":"https://github.com/mainak55512/rjq","last_synced_at":"2025-04-23T03:49:40.646Z","repository":{"id":257893731,"uuid":"868839010","full_name":"mainak55512/rjq","owner":"mainak55512","description":"Simple and fast JSON filtering tool written in Rust.","archived":false,"fork":false,"pushed_at":"2024-10-18T18:59:20.000Z","size":5971,"stargazers_count":18,"open_issues_count":10,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T03:49:31.730Z","etag":null,"topics":["cli","jq","json","json-filtering","linux","open-source","performance","query-builder","rust","terminal-based","windows"],"latest_commit_sha":null,"homepage":"","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/mainak55512.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-10-07T09:20:29.000Z","updated_at":"2024-11-19T05:22:27.000Z","dependencies_parsed_at":"2024-11-08T20:10:49.597Z","dependency_job_id":null,"html_url":"https://github.com/mainak55512/rjq","commit_stats":{"total_commits":76,"total_committers":5,"mean_commits":15.2,"dds":"0.39473684210526316","last_synced_commit":"0f3aa2f78a60aab3ac54592011982a2032b1ad2a"},"previous_names":["mainak55512/rjq"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainak55512%2Frjq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainak55512%2Frjq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainak55512%2Frjq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainak55512%2Frjq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mainak55512","download_url":"https://codeload.github.com/mainak55512/rjq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250366685,"owners_count":21418768,"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":["cli","jq","json","json-filtering","linux","open-source","performance","query-builder","rust","terminal-based","windows"],"created_at":"2024-10-19T21:15:50.991Z","updated_at":"2025-04-23T03:49:40.626Z","avatar_url":"https://github.com/mainak55512.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eWelcome to rjq 👋\u003c/h1\u003e\n\u003cp\u003e\n  \u003ca href=\"https://mainak55512.github.io/rjq/\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Documentation\" src=\"https://img.shields.io/badge/documentation-yes-brightgreen.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Repo size\" src=\"https://img.shields.io/github/repo-size/mainak55512/rjq\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/github/v/tag/mainak55512/rjq\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Issues\" src=\"https://img.shields.io/github/issues/mainak55512/rjq\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e Simple and fast JSON filtering tool written in Rust.\n\n### 🏠 [Homepage](https://github.com/mainak55512/rjq)\n\n### 📄 [Documentation](https://mainak55512.github.io/rjq/)\n\n## Getting started 🚴\n\nPre-built binaries for Linux and Windows are available in the [releases section](https://github.com/mainak55512/rjq/releases).\nDownload suitable binary according to your OS configuration and add the path to environment variables for easy access across the system.\n\n## Usage 🔧\n\n```sh\nrjq --load=\"\u003cfile path\u003e\" --query=\"\u003cquery string\u003e\" --params=\"\u003ccomma separated parameter names\u003e\"\n```\nor,\n\n```sh\nstto --json cpython | rjq --query=\"\u003cquery string\u003e\" --params=\"\u003ccomma separated parameter names\u003e\"\n```\n\nDemo data.json:\n\n```sh\n[\n  {\n    \"_id\": \"88L33FM4VQBB1QYH\",\n    \"name\": \"Eleonore Kendall\",\n    \"dob\": \"2021-04-13\",\n    \"address\": {\n      \"street\": \"3137 Stich Avenue\",\n      \"town\": \"Swanley\",\n      \"postode\": \"CR45 9NE\"\n    },\n    \"telephone\": \"+49-2424-456-409\",\n    \"pets\": [\n      \"Murphy\",\n      \"Oliver\"\n    ],\n    \"score\": 2.4,\n    \"email\": \"etheleneweston@shuttle.com\",\n    \"url\": \"http://www.consultant.com\",\n    \"description\": \"mobiles besides deputy australian picnic germany collectables gmc necessity both webcams testing set continuity bread candle drivers p icon alone\",\n    \"verified\": true,\n    \"salary\": 24057\n  },\n  {\n    \"_id\": \"OQGS24A7RF6D118C\",\n    \"name\": \"Shona Breen\",\n    \"dob\": \"2017-08-13\",\n    \"address\": {\n      \"street\": \"6515 Camberley\",\n      \"town\": \"Fortrose\",\n      \"postode\": \"SS64 6WU\"\n    },\n    \"telephone\": \"+42-1296-691-224\",\n    \"pets\": [\n      \"Lilly\",\n      \"Penny\"\n    ],\n    \"score\": 8,\n    \"email\": \"gerald-love@para.rome.it\",\n    \"url\": \"http://district.com\",\n    \"description\": \"collective submitted samuel del kenya fi wordpress etc worked realize enzyme ethernet assured championships preferred examples virtual bluetooth urw trust\",\n    \"verified\": false,\n    \"salary\": 10760\n  },\n  {\n    \"_id\": \"YI818QFFYNA6AZUH\",\n    \"name\": \"Dot Milton\",\n    \"dob\": \"2015-03-01\",\n    \"address\": {\n      \"street\": \"2151 Kenstford\",\n      \"town\": \"Coldstream\",\n      \"postode\": \"WN26 1ZO\"\n    },\n    \"telephone\": \"+45-8699-662-747\",\n    \"pets\": [\n      \"Murphy\",\n      \"Bear\"\n    ],\n    \"score\": 2.4,\n    \"email\": \"karla.harrington4058@relation.com\",\n    \"url\": \"https://www.minolta.com\",\n    \"description\": \"segments programmes tulsa acre placing prix awarded senators main trim played italiano difficulties cab customers granny document pf exceptions attractions\",\n    \"verified\": true,\n    \"salary\": 54912\n  },\n  ...\n]\n```\n\nrjq query:\n\n```sh\nrjq --load=\"data.json\" --query=\"salary \u003c 15000 \u0026\u0026 score \u003c 2.0 \u0026\u0026 verified = false\" --params=\"name, address.town, pets\"\n```\n\noutput:\n\n```sh\n[\n  {\n    \"name\": \"Rosaura Thurston\",\n    \"pets\": [\n      \"BatMan\",\n      \"Leo\"\n    ],\n    \"town\": \"Matlock\"\n  },\n  {\n    \"name\": \"Bernardina Bateman\",\n    \"pets\": [\n      \"sox\",\n      \"Stella\"\n    ],\n    \"town\": \"Petersfield\"\n  },\n  {\n    \"name\": \"Miquel Cranford\",\n    \"pets\": [\n      \"Oscar\",\n      \"Oliver\"\n    ],\n    \"town\": \"Olney\"\n  },\n  {\n    \"name\": \"Hanna Scherer\",\n    \"pets\": [\n      \"Sammy\",\n      \"Penny\"\n    ],\n    \"town\": \"Greenhill\"\n  },\n  {\n    \"name\": \"Arcelia Woodcock\",\n    \"pets\": [\n      \"boo\",\n      \"Lexi\"\n    ],\n    \"town\": \"Kendal\"\n  },\n  {\n    \"name\": \"Kayce Gable\",\n    \"pets\": [\n      \"Leo\",\n      \"Murphy\"\n    ],\n    \"town\": \"Otley\"\n  },\n  ...\n]\n```\n\n## Benchmark 📊\n\n![benchmark](./media/rjq_benchmark.png)\n\n## Author\n\n👤 **Mainak Bhattacharjee**\n\n* Github: [@mainak55512](https://github.com/mainak55512)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003eFeel free to check [issues page](https://github.com/mainak55512/rjq/issues). \n\nCheckout [Contributing page](./CONTRIBUTING.md) for contribution guidelines.\n\n## Code of Conduct\n\nBy participating in this project, you agree to abide by the [Code of Conduct](CODE_OF_CONDUCT.md). Please read it to understand your rights and responsibilities.\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainak55512%2Frjq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmainak55512%2Frjq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainak55512%2Frjq/lists"}