Skip to content

Instantly share code, notes, and snippets.

@ingydotnet
Created May 8, 2011 04:22
Show Gist options
  • Select an option

  • Save ingydotnet/961101 to your computer and use it in GitHub Desktop.

Select an option

Save ingydotnet/961101 to your computer and use it in GitHub Desktop.
ingy@thinkingy:~$ perl -MJSON -MYAML -e 'local$/;print YAML::Dump(JSON->new->decode(<>))'
{
"a": [1,2],
"b": "Hi"
}
---
a:
- 1
- 2
b: Hi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment