{"id":19953929,"url":"https://github.com/lycuid/ruson","last_synced_at":"2026-07-04T08:31:50.918Z","repository":{"id":113188551,"uuid":"380020057","full_name":"lycuid/ruson","owner":"lycuid","description":"Command line utility for parsing and processing JSON text (faster than 'jq').","archived":false,"fork":false,"pushed_at":"2023-03-25T19:57:38.000Z","size":1874,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T11:52:22.408Z","etag":null,"topics":["command-line-tool","json-parser","parser","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lycuid.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-06-24T18:39:41.000Z","updated_at":"2022-11-08T23:58:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"78f54116-123e-4de3-938c-10c0b8f00b59","html_url":"https://github.com/lycuid/ruson","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/lycuid/ruson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lycuid%2Fruson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lycuid%2Fruson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lycuid%2Fruson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lycuid%2Fruson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lycuid","download_url":"https://codeload.github.com/lycuid/ruson/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lycuid%2Fruson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35115741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["command-line-tool","json-parser","parser","rust-lang"],"created_at":"2024-11-13T01:18:14.661Z","updated_at":"2026-07-04T08:31:50.912Z","avatar_url":"https://github.com/lycuid.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RUSON\nCommand line json text parsing and processing utility. parsing json compliant with [`rfc8259`](https://datatracker.ietf.org/doc/html/rfc8259).\nBenchmarked faster than [`jq`](https://stedolan.github.io/jq/) (more than _**twice**_ as fast).\n_No third party dependencies_.\n\n- [Installation](#installation)\n  * [Requirements](#requirements)\n  * [Build and Install](#build-and-install)\n- [Usage](#usage)\n- [Query Syntax](#query-syntax)\n- [Examples](#examples)\n- [Licence](#licence)\n\n# INSTALLATION\n### Requirements:\n- [rust and cargo](https://www.rust-lang.org/)\n- [GNU Make](https://www.gnu.org/software/make/)\n- pkg-config (optional).\n### Build and Install.\n```sh\ngit clone --depth=1 https://github.com/lycuid/ruson.git\ncd ruson\nmake \u0026\u0026 sudo make install\n```\n# USAGE\n```txt\nUSAGE: ruson [FLAGS|OPTIONS]... FILE\nExtract sub tree from valid 'json' text.\nUse standard input, if FILE not provided.\n\nFLAGS:\n  -h, --help\n                Display this help and exit.\n  -v, --version\n                Display version and exit.\n  -p, --pretty\n                Print pretty formatted 'json'.\n  -t, --table\n                Print table formatted 'json'.\n\nOPTIONS:\n  -q, --query \u003cquery\u003e\n                Query for extracting desired 'json' subtree.\n```\n\n# Query Syntax.\n```sh\n# Dot notation.\necho '{ \"prop\": \"value\" }' | ruson --query '.prop' # \"value\"\n\n# Bracket notation.\necho '{ \"prop\": \"value\" }' | ruson --query '[\"prop\"]' # \"value\"\n\n# Array indexing.\necho '{ \"prop\": [1, 2, 3, 4, 5] }' | ruson --query '.prop[2]' # 3\n\n# '.keys()' function (valid for 'object').\necho '{ \"one\": 1, \"two\": 2, \"three\": 3 }' | ruson -q '.keys()' # [\"one\", \"two\", \"three\"]\n\n# '.values()' function (valid for 'object').\necho '{ \"one\": 1, \"two\": 2, \"three\": 3 }' | ruson -q '.values()' # [1, 2, 3]\n\n# '.length()' function (valid for 'array' and 'string').\necho '[1, 2, 3]' | ruson -q '.length()' # 3\n\n# '.map()' function (valid for 'array').\necho '{ \"list\": [{ \"id\": 1 }, { \"id\": 2 }, { \"id\": 3 }] }' | ruson -q'.list.map(.id)' # [1, 2, 3]\n```\n\n# EXAMPLES\nDownload latest _**xkcd**_ comic\n```sh\ncurl https://xkcd.com/info.0.json 2\u003e/dev/null | ruson -q \".img\" | xargs wget\n```\nPokemon attack names.\n```sh\ncurl https://pokeapi.co/api/v2/pokemon/pikachu 2\u003e/dev/null | ruson -q \".moves[0].move.name\"\n```\n\n# LICENCE\n[GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flycuid%2Fruson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flycuid%2Fruson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flycuid%2Fruson/lists"}