Show HN: JSON-qs – JSON in query strings, human-readable, compact
1–5 of 5 posts
Re: Show HN: JSON-qs – JSON in query strings, human-readable, compact
#2Is there an example where passing full JSON objects as a query string would be the right solution?
Re: Show HN: JSON-qs – JSON in query strings, human-readable, compact
#3Is 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.
Re: Show HN: JSON-qs – JSON in query strings, human-readable, compact
#4Is this usable as a package installable from NPM?
Re: Show HN: JSON-qs – JSON in query strings, human-readable, compact
#5Is this usable as a package installable from NPM?
I just published it now: https://www.npmjs.com/package/@json-qs/json-qs