An open API service indexing awesome lists of open source software.

https://github.com/meain/tojson

Convert between toml, yaml and json
https://github.com/meain/tojson

cli convert json rust toml yaml

Last synced: about 2 months ago
JSON representation

Convert between toml, yaml and json

Awesome Lists containing this project

README

          

# tojson

> Convert between yaml, toml and 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

```
USAGE:
tojson [FLAGS] [OPTIONS] [filename]

FLAGS:
-h, --help Prints help information
-p, --pretty
-V, --version Prints version information

OPTIONS:
-f, --from [default: auto] [possible values: auto, yaml, toml, json]
-t, --to [default: json] [possible values: json, yaml, toml]

ARGS:

```

#### Example usecase

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