JSON Query

Data

json query language

SHOW HN2025

JSON Query

I'm working on a tool that will probably involve querying JSON documents and I'm asking myself how to expose…

jsonquerylang.org

#json query#jq#jsonpath#jsonata#json query language

154points
70comments
#474of 3,837 in 2025
Top 13%of 2025 by points

How HN took it

MixedNo clear lean

5 positive, 14 neutral or asking, 1 mixed, 9 critical, out of 29 comments about the project. Thread score -0.15.

Idea: 1 for, 6 againstDesign: 4 for, 3 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Called a nice language; kudos for the work

    From 1 comment
    • Lot of people focus on a similarity to jq et al, I guess the author had his reasons to craft own stuff. Kudos for all the work, it's a nice language. I find writing parsers a…
      kunley on HN
  • Nice work with a jq-like feel

    From 1 comment
    • Nice work with a jq-esque feel. Website is cut on mobile devices though
      linhns on HN

Objections

  • Too cute; plain JavaScript syntax would be clearer

    From 1 comment
    • .friends | filter(.city == "New York") | sort(.age) | pick(.name, .age) mapValues(mapKeys(substring(get(), 0, 10))) This is all too cute. Why not just use JavaScript syntax? You…
      hyperhello on HN
  • Just use jq; new query languages frustrate users

    From 1 comment
    • In the k8s world there's a random collection of json path, json query, some random expression language. Just use jq. None of the other ones are as flexible or widespread and you…
      arccy on HN

Questions

  • How does it compare to jq syntax?

    From 1 comment
    • Doesn't the command-line utility `jq` already define a protocol for this? How do the syntaxes compare? (LLMs are already very adept at using `jq` so I would think it was…
      tcdent on HN
  • How does it compare to JSONata?

    From 1 comment
    • I'd like to know how it compares to https://jsonata.org
      jawns on HN

Alternatives named

  • jq

    From 2 comments
    • Doesn't the command-line utility `jq` already define a protocol for this? How do the syntaxes compare? (LLMs are already very adept at using `jq` so I would think it was…
      tcdent on HN
    • In the k8s world there's a random collection of json path, json query, some random expression language. Just use jq. None of the other ones are as flexible or widespread and you…
      arccy on HN
  • JSONata

    From 2 comments
  • JSONPath

    From 2 comments
    • There is a standard in RFC 9535 (JSONPath)[1]. But as far as I can tell, it isn't very widely used, and it has more limited functionality than some of the alternatives. [1]:…
      thayne on HN
    • I hate jq as much as the next guy but it’s ubiquitous and great for this sort of thing. If you want a single path style query language I’d highly recommend JsonPath. It’s so much…
      roxolotl on HN
  • JMESPath

    From 1 comment
    • The AWS CLI supports JMESPath (https://jmespath.org) for the `--query` flag. I don't think I've run into anything else that uses it. Pretty similar to JSONPath IIRC.
      cmckn on HN
  • JSONLogic

    From 1 comment
    • Most alternatives being talked about are working on query strings (like `$.phoneNumbers[:1].type`) which is fine but can not be easily modeled / modified by code. Things like…
      eknkc on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/45722826)