Here are some important point which will give the clear differentiation about why we go for JSON.parse() instead eval() method.
2. All JSON.parse() implementations most likely use eval().
3. Not all browsers have native JSON support so there will be times where we need to use eval() to the JSON string.
Use JSON parser from http://json.org or https://github.com/douglascrockford/JSON-js as that makes everything easy for us.
eval() is an evil but against some browsers its a necessary evil but where you can avoid it,do so.
4. If we parse the JSON with eval, we are allowing the string being parsed to contain absolutely anything, so instead of just being a set of data, you could find yourself executing function calls, or whatever also JSON’s parse accepts an aditional parameter, reviver, that lets you specify how to deal with certain values, such as datetimes
Get glued to know more updates.
Have a nice day 🙂