JSON.parse vs. eval()

Posted by Kevin Major on Stack Overflow See other posts from Stack Overflow or by Kevin Major
Published on 2009-12-03T22:14:53Z Indexed on 2010/04/20 22:43 UTC
Read the original article Hit count: 108

Filed under:
|

My Spider Sense warns me that using eval() to parse incoming JSON is a bad idea. I'm just wondering if JSON.parse() - which I assume is a part of JavaScript and not a browser-specific function - is more secure.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about JSON