Skip to tool

Apex Parse JSON Online

Parse JSON text and pretty-print output.

The output updates as you type. The tool processes input in your browser.

Worked example

Use double quotes for keys and strings. The browser parses JSON and displays an indented serialization of the value.

Sample input
{"name":"manuals","year":2026}
Sample output
{
  "name": "manuals",
  "year": 2026
}

Using this operation in Apex

The interactive result uses JavaScript. Apex text utilities use the System namespace. Consider Salesforce transaction limits when applying an expensive transformation to many records.

Apex reference