Pretty compact JSON

Very simple tool that reads a jsonl file and outputs the same json objects, with the first level unfolded.

Example

input:

{"aa": "hello", "bb": [1, 2, 3], "cc": {"cat": 3, "car": 5}}
{"aa": "hello", "bb": [], "dd": {"dad": 2, "diy": 7}}

output:

{
  "aa": "hello",
  "bb": [1, 2, 3],
  "cc": {"cat": 3, "car": 5}
}
{
  "aa": "hello",
  "bb": [],
  "dd": {"dad": 2, "diy": 7}
}