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