Explain how to transform JSON text to a JavaScript object?



Explain how to transform JSON text to a JavaScript object?..

Answer / Brijraj Singh Shaktawat

Transforming JSON text into a JavaScript object can be done using $.parseJSON() in jQuery or JSON.parse() in native JavaScript. Here is an example: var obj = JSON.parse('{"key":"value"}');

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JSON Interview Questions

How to convert an object into json?

1 Answers  


what are the drawbacks of JSON?

1 Answers  


Is json a framework?

1 Answers  


Is json rest or soap?

1 Answers  


What is json used for?

1 Answers  


What is the use of json stringify?

1 Answers  


What is difference between json and bson?

1 Answers  


What does hasownproperty method do?

1 Answers  


what are the data types supported by JSON?

1 Answers  


what is the MIME type of JSON?

1 Answers  


What is json array?

1 Answers  


What is json call?

1 Answers  


Categories