The JSON Query Language
Compiles JSONiq queries to Javascript.
$ cat query.jq
Install
$ npm install jsoniq -g
Compiled queries need to access the runtime library therefore the jsoniq package needs to be installed as well.
$ npm install jsoniq --save$ jsoniq compile test.jq$ node test.js
Usage
To compile a query to JavaScript:
$ cat query.jq
Or to run the query directly
$ jsoniq run query.jq
To print the query AST:
$ jsoniq ast query.jq
To print the query plan:
$ jsoniq plan query.jq