Command-line tool for converting anything to JSON.
- Eat everything, spits out json
- Supports json, yaml, toml, xml, ini, cli tables
- Formatting and highlighting
- Standalone binary
$ npm install -g stdin2json
$ stdin2json resp.xml > resp.json
$ cat config.yaml | stdin2json > config.json
$ stdin2json deps.toml
$ ps | eat | fx .PID
Use it with fx tool for extracting needed fields.
$ cat response.xml | eat | fx .Document.Title
MIT