Sign inSign up

keinos/yaml-json

By keinos

Updated over 7 years ago

Converts YAML to JSON/JSON to YAML.

Image
0

474

keinos/yaml-json repository overview

YAML-JSON Converter

Dockerfile to convert YAML to JSON and vice versa.

docker pull keinos/yaml-json

Usage

yaml-json [-json | -yaml] [data]
  • -json: Converts YAML to JSON
  • -yaml: Converts JSON to YAML
  • data: String data of YAML or JSON
Sample Usage
$ # Pull image
$ docker pull keinos/yaml-json
$ # Convert YAML to JSON
$ cat ./sample.yaml | docker run --rm -i keinos/yaml-json -json
$ # Convert JSON to YAML
$ cat ./sample.json | docker run --rm -i keinos/yaml-json -yaml

Build

$ git clone https://github.com/KEINOS/YAML-JSON.git YAML-JSON
$ cd $_
$ docker build -t yaml-json .
$ cd tests
$ cat ./sample.json | docker run --rm -i yaml-json -yaml

Tag summary

Content type

Image

Digest

Size

2.5 MB

Last updated

over 7 years ago

docker pull keinos/yaml-json