What is JSON Parser?

Last updated:9/15/2020 9:14:43 PM

1 Answers

AVADHESH PATEL
AVADHESH PATEL

The eval() function can compile and execute any JavaScript. This represents a potential security problem. It is safer to use a JSON parser to convert a JSON text to a JavaScript object. A JSON parser will recognize only JSON text and will not compile scripts.

Answer