rileyhilliard/reportcard — pull request #2 by seantunwin (2013-08-05 15:40:26+00:00)
Title: Json fix 2

I came up with a fix for browsers that read the returned ajax data as text instead of an object.
Set the ajax data to a variable with a conditional that if data is text then use `JSON.parse(data)` otherwise simply pass the data.
I have tested this on WaterFox and PaleMoon (the 2 browsers with the know issues) as well as vanilla FireFox, Chrome and IE10 and it all works nicely.