4 ms·
Show HN: JSON-qs – JSON in query strings, human-readable, compact
- jzebedee 2y agoIs there an example where passing full JSON objects as a query string would be the right solution?
- aleclarsoniv 2y agoThe 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.
- nbbaier 2y agoIs this usable as a package installable from NPM?
- aleclarsoniv 2y agoI just published it now: https://www.npmjs.com/package/@json-qs/json-qs https://www.npmjs.com/package/@json-qs/json-qs