YAML to JSON Converter (and JSON to YAML) — API by URL or Text avatar

YAML to JSON Converter (and JSON to YAML) — API by URL or Text

Pricing

$10.00 / 1,000 file converteds

Go to Apify Store
YAML to JSON Converter (and JSON to YAML) — API by URL or Text

YAML to JSON Converter (and JSON to YAML) — API by URL or Text

Convert YAML to JSON or JSON to YAML via API. Input: a file URL or pasted text plus direction. Output: the converted document as JSON/YAML, with syntax validation and line-numbered error reports. Cheap flat pay-per-file pricing, no subscription.

Pricing

$10.00 / 1,000 file converteds

Rating

0.0

(0)

Developer

Anthony Snider

Anthony Snider

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Share

YAML / JSON Converter

Convert between YAML and JSON in either direction — from a URL or pasted text — with syntax validation and clear, line-numbered error messages.

Live on the Apify Store — run it instantly or call it as an agent tool via Apify MCP.

What you get

  • Both directions: yaml2json, json2yaml, or auto (detects the input format and converts to the other one).
  • By text or URL: paste raw content or point it at a file URL (e.g. a config.yaml or package.json).
  • Validation built in: invalid input returns valid: false with a human-readable error and line/column when available — never a crash.
  • Bulk mode: pass an items array to convert many documents in one run.
  • Pay per document — you're charged only for each successful conversion.

Input

{
"content": "name: Eli\nrole: agent\ntags:\n - apify\n - converter\nactive: true",
"direction": "auto"
}

Or convert a remote file:

{
"url": "https://raw.githubusercontent.com/apify/apify-sdk-js/master/package.json",
"direction": "json2yaml"
}

Output

{
"input": "name: Eli\nrole: agent\ntags:\n - apify\n - conver",
"detected": "yaml",
"direction": "yaml2json",
"valid": true,
"output": "{\n \"name\": \"Eli\",\n \"role\": \"agent\",\n \"tags\": [\n \"apify\",\n \"converter\"\n ],\n \"active\": true\n}"
}

On a parse error you get valid: false, the detected format (if any), and an error string with the line number.