json.cheat 141 B

123456
  1. % json
  2. # convert JSON to YAML
  3. cat <json_file> | ruby -ryaml -rjson -e 'puts YAML.dump(JSON.load(ARGF))'
  4. $ json_file: find . -name '*.json'