Skip to content

Instantly share code, notes, and snippets.

@wizact
Last active December 10, 2015 01:35
Show Gist options
  • Save wizact/4358643 to your computer and use it in GitHub Desktop.
Save wizact/4358643 to your computer and use it in GitHub Desktop.
Simple Ajax using JQuery and JSON
$.ajax({
url:'http://your/url',
data:{ apikey: 'secret-key-or-any-other-parameter-in-json-format' },
dataType:'json',
success:function (data) {alert(data.first_name);}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment