It's not a valid JSON document if "each line is valid JSON". Fundamentally, no json parser can parse this response - which is the whole point of returning JSON, so it's easy to parse. Having to pre-parse a JSON response defeats the whole purpose.
I opened a case with Splunk support and they've indicated that they have reproduced the issue and that it is indeed returning invalid JSON. A fix should hopefully be forthcoming.
... View more