3 ms·
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 jso
by mistercow 5y 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.