WebPagetest Forums
Json Bug Found - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: Json Bug Found (/showthread.php?tid=14908)



Json Bug Found - spencer_shaw - 05-25-2017 08:42 PM

When running a lint checker
e.g. https://jsonformatter.curiousconcept.com/

On multiple URLs:
https://www.webpagetest.org/result/170524_EG_X1Y/?f=json
https://www.webpagetest.org/result/170524_RJ_X1Z/?f=json

an unknown error occurs

The tests were for 9 retries so perhaps its a case then the json is just too big?


RE: Json Bug Found - pmeenan - 05-30-2017 10:47 PM

I'm pretty sure it's an issue with the tool because of the size of the data (or the time it takes to generate). I decoded the JSON for tgat in a few different tools and they all parsed it fine.

For example, in Chrome's dev tools you can do this:

Code:
fetch("https://www.webpagetest.org/result/170524_EG_X1Y/?f=json").then(function(response){response.json().then(function(obj){console.log(obj)})}​)

And after a few seconds it will dump the decoded object to the console.