Parse JSON response String - Javascript JSon

Javascript examples for JSon:JSon Parse

Description

Parse JSON response String

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials