←back to thread

Show HN: JSON Query

(jsonquerylang.org)
147 points wofo | 1 comments | | HN request time: 0.204s | source

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

I like the power of `jq` and the fact that LLMs are proficient at it, but I find it right out impossible to come up with the right `jq` incantations myself. Has anyone here been in a similar situation? Which tool / language did you end up exposing to your users?

Show context
tcdent ◴[] No.45723914[source]
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 preferable to be able to prompt a system that implements querying inside of source code as "this command uses the same format as `jq`")

replies(2): >>45724408 #>>45725846 #
1. inlined ◴[] No.45725846[source]
Mongo also has a good query language and a mongo DB can be seen as an array of documents