I am currently using eval in Javscript to convert JSON data returned from the server into an object.
eval ("myObject="+data);
I've been told that eval is 'evil' and can open up big security problems.
I'm wondering - is using eval to convert JSON data to an object the accepted practice? Or is there a better way?
Thanks,