Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. var json = (function() {
  2. var json = null;
  3. $.ajax({
  4. 'async': false,
  5. 'global': false,
  6. 'url': "info.json",
  7. 'dataType': "json",
  8. 'success': function (data) {
  9. json = data;
  10. }
  11. });
  12. return json;
  13. })();
  14.  
  15. console.log("json: " + json);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement