Skip to content

Instantly share code, notes, and snippets.

@malnick
Created January 9, 2014 18:50
Show Gist options
  • Save malnick/8339719 to your computer and use it in GitHub Desktop.
Save malnick/8339719 to your computer and use it in GitHub Desktop.
YAML to JSON Error
root@bohr:/Users/malnick/projects/banyan/www → ruby -rpuppet -ryaml -rjson -e 'JSON.pretty_generate(YAML.load_file("last_run_report.yaml"))'
/Library/Ruby/Gems/2.0.0/gems/json_pure-1.8.1/lib/json/common.rb:285:in `generate': only generation of JSON objects or arrays allowed (JSON::GeneratorError)
from /Library/Ruby/Gems/2.0.0/gems/json_pure-1.8.1/lib/json/common.rb:285:in `pretty_generate'
from -e:1:in `<main>'
root@bohr:/Users/malnick/projects/banyan/www →
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment