What is wrong with my json in context of jQuery.jsonParse?
I'm getting an 'invalid js开发者_StackOverflowon' exception for a set of json. I tested the json in a validator. I've placed the json inside of a php file and set the header to "contenttype:application/json; charset=utf-8."
Not sure what else could be the culprit. I have my jsfiddle here: jsfiddle
$.parseJSON
doesnt load a URL, you pass it a json string. the function youre looking for is $.getJSON
.
精彩评论