3 ms·
I know I have used something like this code before, it is basicly what they are talking about. json_decode(“[“.implode($lines,”,\n”).”]”)
by callesgg 5y ago
I know I have used something like this code before, it is basicly what they are talking about.
json_decode(“[“.implode($lines,”,\n”).”]”)
- wolfgang42 5y agoSure, that's one way to parse this format. The advantage is that individual records can also be manipulated by JSON-agnostic code, so you can easily do things like stream processing.