JSON Lines Formatter worked example
{
"source": "{\"id\":1,\"live\":true}\n{\"id\":2,\"live\":false}"
}
{
"formatted": "{\"id\":1,\"live\":true}\n{\"id\":2,\"live\":false}",
"record_count": 2,
"diagnostics": []
}
Developer Tools
Format one JSON value per line and identify invalid records.
Published Last reviewed
Format one JSON value per line and identify invalid records. Enter json lines in a purpose-built jsonl formatter interface designed for this subject. Each nonblank line is parsed as an independent JSON value and serialized compactly or with the chosen indentation. The result includes formatted json lines, valid records, diagnostics, supporting detail, and clear units or diagnostics. Results depend on the entered assumptions, units, and rounding. Review important decisions against authoritative requirements. Processing stays in your browser, and UtilityPages does not store the values you enter.
Workspace
Edit the source fields below and inspect the rendered output alongside your work.
This workspace updates as you edit.
Enter the values above, then process to see a detailed result.
Each nonblank line is parsed as an independent JSON value and serialized compactly or with the chosen indentation.
Each nonblank line is parsed as an independent JSON value and serialized compactly or with the chosen indentation. Results depend on the entered assumptions, units, and rounding. Review important decisions against authoritative requirements.
{
"source": "{\"id\":1,\"live\":true}\n{\"id\":2,\"live\":false}"
}
{
"formatted": "{\"id\":1,\"live\":true}\n{\"id\":2,\"live\":false}",
"record_count": 2,
"diagnostics": []
}
This tool does not store your inputs or results on UtilityPages.org.
Each nonblank line is parsed as an independent JSON value and serialized compactly or with the chosen indentation.
Enter json lines. Use values and units from the same scenario so the result is internally consistent.
It reports formatted json lines, valid records, diagnostics, including intermediate context where it helps you review the answer.
Results depend on the entered assumptions, units, and rounding. Review important decisions against authoritative requirements.