Yaml parses json, too; no need to try both.