Start with two named records
Open stations.array.json from the field-order exercise. Choose the array-to-lines direction and paste the entire array, including its brackets. Both objects contain station and cue, although the second writes cue first.
Convert the array. The first output line associates C07 with pit and the second associates C08 with fly. There is one compact object on each physical line, with an LF after the last object.
Reverse the conversion
Save the complete two-line result before you change direction. Select lines to array, then paste the saved text. The result is one compact JSON array. Read the station field on the second record to check the association.
Across the two forms, compare records in sequence and compare fields by name. Indentation, escape spelling and the sequence in which an object displays its members can change when text is written again.
Check a file boundary
The reader accepts LF or CRLF between records and accepts a final record without a trailing newline. Two separators after the last record leave an empty line, which stops this converter. It also rejects a byte order mark and a carriage return on its own.
An empty array produces exactly zero characters of line text. In the other direction, an entirely empty input produces an empty array. A space or a line break by itself is a blank line and receives a refusal.
Prepare a bounded handoff
Every record needs the same 1 to 64 nonblank field names with string values. A number, null or nested object needs a separately agreed representation. A table matrix can be inspected in the JSON table checker.
Conversion runs in the browser. The limits are 2,000 records and 100,000 UTF-16 code units for each of the input and output. If the result exceeds the text limit, the conversion stops. A successful output contains the field names and values you supplied.