---
title: "What is JSON Parser?"  
description: "What is JSON Parser?"  
author: "AVADHESH PATEL"  
published: 2013-05-29  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/1728/what-is-json-parser  
category: "json"  
tags: ["json"]  
reading_time: 1 minute  

---

# What is JSON Parser?

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.

## Answers

### Answer by 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.


---

Original Source: https://www.mindstick.com/interview/1728/what-is-json-parser

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
