returning JSON data vis parse - Javascript jQuery

Javascript examples for jQuery:Json

Description

returning JSON data vis parse

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){//from  w  w w . j a  va 2 s  .  co m
$(function(){
 var s='{"language_id":"1","word_id":"1"}'
 var s=JSON.parse(s)
 console.log("LanguageId = "+ s.language_id);
 console.log("word_id= "+ s.word_id);
});
    });

      </script> 
 </head> 
 <body>  
 </body>
</html>

Related Tutorials