Settings

Theme

Show HN: JSON-qs – JSON in query strings, human-readable, compact

github.com

13 points by aleclarsoniv a year ago · 4 comments

Reader

jzebedee a year ago

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

  • aleclarsonivOP a year ago

    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.

nbbaier a year ago

Is this usable as a package installable from NPM?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection