JSON example code |JSON Parsing sample code

<<Previous                                                Home                                                         Next >>

JSON Simple example


Before going through below example please go through What is JSON?.

Output of the below example is :


JSON example code |JSON Parsing sample code
JSON example code |JSON Parsing sample code



<html>
<head>
<title>JSON Example by aspnettutorialonline.blogspot.com</title>
</head>
<body>
<h1> JSON Parsing</h1>
<b>Website Name:</b> <span id="name"></span><br />
<b>Visitors:</b><span id="visitors"></span><br />
<script type="text/javascript">
var JSONObject={"name":"aspnetutorialonline.blogspot.com","visitors":"2000 per 
day"};
document.getElementById("name").innerHTML=JSONObject.name;
document.getElementById('visitors').innerHTML=JSONObject.visitors;
</script>
</body>
</html>

 see more JQuery Interview Questions



<<Previous                                                Home                                                         Next >>

Share this post :

Post a Comment

Please give your valuable feedback on this post. You can submit any ASP.NET article here. We will post that article in this website by your name.

 
Support : Ranga Rajesh Kumar
Copyright © 2012. ASP.NET Examples - All Rights Reserved
Site Designed by Ranga Rajesh Kumar