Hacker News new | ask | show | jobs
by mistercow 1620 days ago
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.