Dockerfile to convert YAML to JSON and vice versa.
docker pull keinos/yaml-json
golang:alpine @ Docker Hubbusybox @ Docker Hubyaml-json [-json | -yaml] [data]
-json: Converts YAML to JSON-yaml: Converts JSON to YAMLdata: String data of YAML or JSON$ # 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
$ 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
Content type
Image
Digest
Size
2.5 MB
Last updated
over 7 years ago
docker pull keinos/yaml-json