Skip to content

Instantly share code, notes, and snippets.

@lichti
Last active September 11, 2015 19:03
Show Gist options
  • Save lichti/1f8aa12ad38f47fc4e55 to your computer and use it in GitHub Desktop.
Save lichti/1f8aa12ad38f47fc4e55 to your computer and use it in GitHub Desktop.
Convert json to yaml
ruby -r json -r yaml -e "json = JSON.parse(File.read('./file.json')); print YAML::dump(json)" > file.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment