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

https://github.com/vasrem/jsontoyaml

JSON to YAML and vice versa
https://github.com/vasrem/jsontoyaml

json jsontoyaml rust yaml yamltojson

Last synced: about 2 months ago
JSON representation

JSON to YAML and vice versa

Awesome Lists containing this project

README

          

# jsontoyaml

Command line tool to convert JSON to YAML and vice versa.

***Attention:*** This is a small project which I did to get familiar with Rust and it is not meant to be used in production.

## Dependencies

* Rust 1.36.0 (most likely it works with previous versions as well but this is what I had at this point)

## Build

First you need to build the project using the following command:

``` bash
cargo build
# or
cargo build --release
```

Then copy the binary which is under `target/{release,debug}/jsontoyaml` to your preferred `$PATH` directory.

## Usage

``` bash
$ jsontoyaml -h
jsontoyaml 0.1.0
Converts JSON to YAML and vice versa using stdin

USAGE:
jsontoyaml [FLAGS]

FLAGS:
-h, --help Prints help information
-r, --reverse YAML to JSON
-V, --version Prints version information
```

You can use the binary as shown below:

``` bash
# JSON to YAML
cat <