The objects preset has id and name fields on two lines plus a permitted final LF.

Formatting minifies each record

Key order follows JSON.parse and JSON.stringify behavior; whitespace becomes canonical compact JSON.

Array output wraps parsed values

The two objects become adjacent elements in one pretty-printed JSON array.