Steven, I am doing the same way as you said using eval and storing the string in JS variable.
I may be wrong but as per my understanding $.getJSON also does eval() internally. Just wanted to do pure implementation only through $.getJSON without using eval() custom JS method. Thanks Mohammed Arif On Mar 18, 10:19 am, Steven Yang <kenshin...@gmail.com> wrote: > 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.