Retrieve place_ID from Json - Javascript jQuery

Javascript examples for jQuery:Json

Description

Retrieve place_ID from Json

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>JSON.stringify Examples</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> 
  <script type="text/javascript">
    $(function(){//from  w  w w.j a  v  a 2 s .  co m
var varPlace = {
    "result" : "Some",
    "place_id" : "aaa"
};
var varPlaceID = varPlace.place_id;
console.log(varPlaceID);
    });

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

Related Tutorials