Sorry if i am mistaken in anywaybut $.getJSON is suppose to be for getting JSON data from remote server or simply server, but not for you to eval a String into javascript object. And from the source of jQuery I believe it will simply to eval('('+json+')') anyway. And if you want to do it that way, why not just save your string in a javascript variable? or if its generated serverside, then you dont even have to eval it.
- [jQuery] $.getJSON isn't working while getting the JSON data... Arif
- [jQuery] Re: $.getJSON isn't working while getting the ... Steven Yang
- [jQuery] Re: $.getJSON isn't working while getting ... Mohammed Arif