Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: JSON-qs – JSON in query strings, human-readable, compact (github.com/alloc)
13 points by aleclarsoniv 6 months ago | hide | past | favorite | 4 comments



Is there an example where passing full JSON objects as a query string would be the right solution?


The most common case is probably complex search queries. It's really nice not having to flatten your data just to get network level caching.

In my case, building an RPC library with REST semantics, it's important to me to not place any restrictions on how developers pass their data to the backend. So removing that arbitrary flattening requirement is a big win. The json-qs specification does it in a way that balances readability and compactness.


Is this usable as a package installable from NPM?





Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: