Programming Tutorials

Comment on Tutorial - XML vs JSON in AJAX By Emiley J.



Comment Added by : Nazmun Sadat Khan

Comment Added at : 2009-01-29 21:48:26

Comment on Tutorial : XML vs JSON in AJAX By Emiley J.
Yes, you are right. But JSON is more dangerous that XML in many cases specially when the data comes from an untrusted site. Using the eval() function is an easy way to parse JSON data but it also executes JavaScript commands allowing an attacker to easily execute malicious javascript code.

View Tutorial