Page 1 of 1

JSON.parse error, lastScrapeResult have binary data.

Posted: Sun Nov 02, 2014 1:49 pm
by Anton9121
When request trackerStats, item lastScrapeResult may have binary data, and browser can't parse JSON.
I replace this item with regexp, but I think it need serialize.

Code: Select all

data.replace(/"lastScrapeResult":"[^"]*","/gm, '"lastScrapeResult":"","');

Re: JSON.parse error, lastScrapeResult have binary data.

Posted: Mon Nov 03, 2014 11:56 am
by greg55
You could try using https://json-csv.com to parse the data. That will at least show you exactly what data is in the response.