Skip to content

Instantly share code, notes, and snippets.

@rodolfo42
Last active July 15, 2016 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodolfo42/4d8cc992aa576012e740e6a59bbf07af to your computer and use it in GitHub Desktop.
Save rodolfo42/4d8cc992aa576012e740e6a59bbf07af to your computer and use it in GitHub Desktop.
Convert a YAML to JSON
ruby -ryaml -rjson -e 'puts JSON.pretty_generate(YAML.load(ARGF))' < in.yml > out.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment