tojson

Convert from yaml and toml to json

Installation

MacOS

brew install meain/meain/tojson

Cargo

cargo install tojson

Source

git clone git@github.com:meain/tojson.git cd tojson && cargo install --force --path .

Usage

tojson - convert from various formats to json Usage: tojson [flags] <filename> supported formats - yaml, toml flags: --pretty, -p: prettify the output

Example usecase

tojson Cargo.toml | jq -r '.package.version'