[](https://crates.io/crates/unstructured) [](https://docs.rs/unstructured/) [](LICENSE)
jyx is a CLI tool for manipulating data of various formats. It is useful for converting between various formats and filtering data ingested by any of the supported formats.
jyx allows merging and filtering of any arbitrary number of inputs. One input source may be from stdin with an input format specified, which, when used, will be sourced as the document at index 0 for filtering purposes.
```bash Command line tool for manipulating data structures
USAGE: jyx [OPTIONS]
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS:
-f, --filter
```bash
jyx -i input1.json -i input2.yaml
jyx -i input1.json -o output.json
jyx -i input1.json -o output.yaml --format yaml
jyx -i Cargo.toml -i input2.json -o result.yaml --format yaml -f '[0].dependencies | [1].someData'
curl https://raw.githubusercontent.com/danyork/sample-xml-files/master/helloworld.xml | jyx -s xml ```
The filter syntax is inspired by jq, another great tool, but also supports JSON Pointer syntax. ```bash
jyx -f [0].key
jyx -f [0].array.[:5]
jyx -f '[0].["key"] | [1].array.[5:10]'
```