in reply to Trying to decode JSON streaming from a website
I don't think that JSON::SL likes invalid JSON, and if your stream is coming in without the commas separating the JSON objects, it is not valid JSON.
You will have to find a way to insert the commas before feeding the data to JSON::SL. Maybe s/\{"sequenceNumber/,\{"sequenceNumber/g is already enough. If you are lucky, the JSON stream really has the newlines as you showed, then you can do s!\n!,!g.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trying to decode JSON streaming from a website
by ve6sar (Novice) on Apr 14, 2017 at 22:49 UTC | |
by Corion (Patriarch) on Apr 15, 2017 at 07:35 UTC |