01 / Example
Example
[{"name":"Hello","message":"Welcome"},{"name":"Welcome"}]{"name":"Hello","message":"Welcome"}
{"name":"Welcome"}Code Beautify / MULTIVERTO
Write every item of a JSON array on its own JSON line.
Apply each text tool to the previous result. Text workflows ↗
Only the recipe name and tool order are saved in this browser. Your input and results are never saved.
01 / Example
[{"name":"Hello","message":"Welcome"},{"name":"Welcome"}]{"name":"Hello","message":"Welcome"}
{"name":"Welcome"}02 / Guide
Write every item of a JSON array on its own JSON line. Serialize each array member compactly on a separate line.
The sample input is [{"name":"Hello","message":"Welcome"},{"name":"Welcome"}]; its converted form is {"name":"Hello","message":"Welcome"} {"name":"Welcome"}.
Line breaks inside a JSON string remain escaped as backslash-n, so they do not split a record. Top-level values may be objects, arrays, numbers, strings, booleans or null, although a receiving service may demand objects only. The array form is one JSON document; the line form is several JSON documents and should not be submitted to an endpoint that expects a single JSON value. Check encoding as UTF-8 and any downstream record size limit before using large exports. Stream or inspect one JSON array item per line without adding commas between the records. Begin with a JSON array, even if it contains just one element; an object on its own is rejected. Each array item is serialized as one compact JSON value, with no comma between resulting lines. A newline inside a string is written as an escaped sequence, so it cannot split a record. An empty array produces an empty text result, which cannot be parsed back as a nonempty JSON Lines document. Decide how the receiving system represents an empty stream before exporting that case.
Validate the generated JSON Lines by parsing each nonempty line separately; validate a generated array by parsing it once as a complete JSON document. Keep line breaks inside strings escaped so they do not become accidental record boundaries. If a downstream service requires objects on every line, check that requirement explicitly because the format itself also permits scalar values. A final newline is acceptable for many line-based readers. Include an object, a number and a string containing an escaped newline. Parse each resulting line separately; the string escape must not split a record. Confirm that the source is a JSON array before interpreting the output as a record stream. Each element becomes one compact JSON value on its own line, and an escaped newline inside a string must not split that record. No commas separate lines in the result. An empty array produces an empty stream, which some importers treat differently from an empty document. Try a consumer round trip with representative element types rather than assuming it accepts every JSON value that an array can contain.
Explore guides