{"id":13439967,"url":"https://github.com/s-panferov/queryst","last_synced_at":"2026-02-28T22:31:45.638Z","repository":{"id":21128240,"uuid":"24429134","full_name":"s-panferov/queryst","owner":"s-panferov","description":"Rust query string parser with nesting support","archived":false,"fork":false,"pushed_at":"2023-05-13T20:18:48.000Z","size":928,"stargazers_count":69,"open_issues_count":0,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-13T22:28:13.976Z","etag":null,"topics":[],"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/s-panferov.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-09-24T19:21:50.000Z","updated_at":"2025-08-27T13:32:21.000Z","dependencies_parsed_at":"2024-04-29T10:11:07.134Z","dependency_job_id":null,"html_url":"https://github.com/s-panferov/queryst","commit_stats":null,"previous_names":["rustless/queryst"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/s-panferov/queryst","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-panferov%2Fqueryst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-panferov%2Fqueryst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-panferov%2Fqueryst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-panferov%2Fqueryst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s-panferov","download_url":"https://codeload.github.com/s-panferov/queryst/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s-panferov%2Fqueryst/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29953284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"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-07-31T03:01:18.583Z","updated_at":"2026-02-28T22:31:45.595Z","avatar_url":"https://github.com/s-panferov.png","language":"Rust","readme":"## What is Queryst?\n\n**This is a fork of the original, with serde and serde_json updated to 0.9**\n\nA query string parsing library for Rust inspired by https://github.com/hapijs/qs. A part of REST-like API micro-framework [Rustless].\n\n```toml\n# Cargo.toml\n\n[dependencies]\nqueryst = \"1\"\n```\n\n[API docs](http://rustless.org/queryst/doc/queryst)\n\n[Rustless]: https://github.com/rustless/rustless\n\n## Usage\n\nUse **queryst** library to parse query-string to corresponding [json values].\n\n```rust\nuse queryst::parse;\n\n// will contain result as Json value\nlet object = parse(\"foo[0][a]=a\u0026foo[0][b]=b\u0026foo[1][a]=aa\u0026foo[1][b]=bb\");\n```\n\n[json values]: https://github.com/serde-rs/json\n\n## Description\n\n**queryst** allows you to create nested objects within your query strings,\nby surrounding the name of sub-keys with square brackets `[]`.\nor example, the string `'foo[bar]=baz'` converts to this JSON:\n\n```json\n{\n  \"foo\": {\n    \"bar\": \"baz\"\n  }\n}\n```\n\nURI encoded strings work too:\n\n```js\nparse('a%5Bb%5D=c');\n// { \"a\": { \"b\": \"c\" } }\n```\n\nYou can also nest your objects, like `'foo[bar][baz]=foobarbaz'`:\n\n```javascript\n{\n  \"foo\": {\n    \"bar\": {\n      \"baz\": \"foobarbaz\"\n    }\n  }\n}\n```\n\n### Parsing Arrays\n\n**queryst** can also parse arrays using a similar `[]` notation:\n\n```javascript\nparse('a[]=b\u0026a[]=c');\n// { \"a\": [\"b\", \"c\"] }\n```\n\nYou may specify an index as well:\n\n```javascript\nparse('a[0]=c\u0026a[1]=b');\n// { \"a\": [\"c\", \"b\"] }\n```\n\nNote that the only difference between an index in an array and a key in an object is that the value between the brackets must be a number to create an array.\n\n**queryst** **does't** allow to specify sparse indexes on arrays and will convert target array to object:\n\n```javascript\nparse('a[1]=b\u0026a[15]=c');\n// { \"a\": {\"1\": \"b\", \"15\": \"c\"} }\n```\n\nAlso if you mix notations, **queryst** will merge the two items into an object:\n\n```javascript\nparse('a[0]=b\u0026a[b]=c');\n// { \"a\": { \"0\": \"b\", \"b\": \"c\" } }\n```\n\nYou can also create arrays of objects:\n\n```javascript\nparse('a[][b]=c');\n// { \"a\": [{ \"b\": \"c\" }] }\n```\n","funding_links":[],"categories":["Libraries","库 Libraries"],"sub_categories":["Parsing","解析 Parsing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-panferov%2Fqueryst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs-panferov%2Fqueryst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs-panferov%2Fqueryst/lists"}