Skip to content

Instantly share code, notes, and snippets.

@robjcordes
Created September 28, 2012 04:51
Show Gist options
  • Save robjcordes/3797985 to your computer and use it in GitHub Desktop.
Save robjcordes/3797985 to your computer and use it in GitHub Desktop.
var json = {};
json['title'] = 'jordan';
json['type'] = 'page';
json['body'] = 'this is the body text';
$.ajax({
url: "http://demo2.idonate.com/node_resource/node",
dataType: "json",
type: "POST",
contentType: 'application/json',
data: JSON.stringify(json),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment