Use YAML.to_json instead of YAML.dump

We're not using any features of YAML outside of
dictionaries and lists (hashes and arrays), so why not
let our data be parseable by YAML _and_ JSON?