

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is JSON.parse() and and explain its use in javascript?
JSON.parse()
When the data is received from web server, the data is always a string .So to change it to the object, JSON.parse() method is used.
Example
<html> <body> <script> var obj = '{"name":"Jon", "age":20, "city":"Columbia"}'; var res = JSON.parse(obj); document.write(res); console.log(res); </script> </body> </html>
output
[object object] {"name":"Jon", "age":"20", "city":"Columbia"}
- Related Questions & Answers
- What is JSON.stringify() and explain its use in javascript?
- Read by key and parse as JSON in JavaScript
- What is OLAP? Explain its advantages and disadvantages
- What is Java API and what is its use?
- JavaScript JSON parse() Method
- What is an acquisition strategy and explain its types and elements?
- What is bootstrap and what is its use as a framework?
- What is definition of business finance and explain its types?
- What is query optimization and explain its two forms(DBMS)?
- What is the hedge ratio? Explain its advantages and disadvantages.
- Explain Merger and its types
- Explain acquisition and its types
- What is the fetchone() method? Explain its use in MySQL Python?
- What is a single column cash book and explain its format?
- What is a triple column cash book and explain its format?
Advertisements