Accessing JSON data from a url - Javascript jQuery

Javascript examples for jQuery:Json

Description

Accessing JSON data from a url

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://code.jquery.com/jquery-git.js"></script> 
      <script type="text/javascript">
    $(function(){//from ww  w .  j  a  v  a 2 s. com
$.getJSON("https://your server/matches.json", function (data) {
    $("#reply").html(JSON.stringify(data));
});
    });

      </script> 
   </head> 
   <body> 
      <div id="reply"></div>  
   </body>
</html>

Related Tutorials