Convert a YAML file to JSON