Skip to content

Instantly share code, notes, and snippets.

@simoebenhida
Created June 21, 2018 19:42
Show Gist options
  • Save simoebenhida/67f94d07b74b435cae20b6ecd1ee7936 to your computer and use it in GitHub Desktop.
Save simoebenhida/67f94d07b74b435cae20b6ecd1ee7936 to your computer and use it in GitHub Desktop.
$.ajax({
type : "POST",
url : 'URL',
data : data,
dataType : 'json',
encode : true
}).done(function(data) {
$('.response').empty().append(JSON.stringify(data,null,2))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment