Hacker News new | ask | show | jobs
by darkstarsys 1622 days ago
Looks really nice. I wish it handled yaml as well.
1 comments

I like to have something like this in my shell:

    y2j () {
        ruby -r json -r yaml -e 'puts JSON.dump(YAML.load(STDIN))'
    }
Makes it easy to use json tooling for yaml, although of course it flattens out anchors etc.