yes $.getJSON does do eval internally
so what your trying to accomplish is, trying to eval a string into
javascript object but u dont want to write eval() everywhere right?
or i misunderstood your question in anyway?
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 Ari
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,
3 matches
Mail list logo