Parse a JSONL (newline-separated JSON) string. Skip empty lines.Throw on invalid JSON.
solve('{"a":1}\n{"b":2}') → [{ a: 1 }, { b: 2 }].
solve('{"a":1}\n{"b":2}')
[{ a: 1 }, { b: 2 }]
Sample tests