Javascript examples for JSon:JSon Parse
Parse JSON response String
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript"> window.onload=( function() {/*from w w w . java 2s . c o m*/ var obj2 = JSON.parse('{"work":[{"employer":{"id":"111111111111429","name":"Pvt Ltd"}}]}'); console.log("Parsing with Json : " + JSON.stringify(obj2.work[0].employer.name)); }); </script> </head> <body> </body> </html>