Skip to content

Instantly share code, notes, and snippets.

@erran
Created September 14, 2013 17:05
Show Gist options
  • Save erran/6563698 to your computer and use it in GitHub Desktop.
Save erran/6563698 to your computer and use it in GitHub Desktop.
Discovery of the day, off of a fact I learned a few weeks ago. This is because the JSON filetype is a subset of YAML it remains readable to `YAML.parse()`.
JSON.parse(json) == YAML.parse(json).to_ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment