Development and data
When simple YAML can be converted to JSON
A small configuration with scalar keys and values can be represented in YAML and compared with a JSON object.
Before you start
Text is processed in the browser. Consider the content before using it and read the privacy policy.
PrivacyHow to use it
Enter three lines: name: Ada, active: true and count: 2.
Select YAML to JSON and check the text, boolean and number.
Try user: followed by an indented name: Ada line: nested structure is rejected.
Worked example
In this example, Ada is text, true is a boolean and 2 is a number. Conversion creates an object with three properties.
Result: {"name":"Ada","active":true,"count":2}.
Limits and checks
The converter accepts a subset of flat maps and scalars, not full YAML: lists, nested structures and inline comments are unsupported. Duplicate keys and unsafe numbers are rejected; decimals may be rounded. Limit: 100,000 UTF-16 code units.
Next step
To inspect the generated JSON, use JSON Formatter.
How to format and check JSON before sharing it