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
- Host: GitHub
- URL: https://github.com/vasrem/jsontoyaml
- Owner: vasrem
- Created: 2019-08-07T14:34:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-08T08:57:13.000Z (almost 7 years ago)
- Last Synced: 2025-01-26T05:17:08.868Z (over 1 year ago)
- Topics: json, jsontoyaml, rust, yaml, yamltojson
- Language: Rust
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 <