Implements the jq syntax in Rust, providing an abstract syntax tree.
The simplest filter is .
. It consumes JSON and produces the same output, unchanged.
.
produces the following AST:
Program
|
|
Identity
Use it like this in your program:
```rust use jqlang::toast; use jqlang::nodetype::NodeType;
let ast = toast(".").unwrap(); asserteq!(ast.node_type, NodeType::Program); ```
MIT