Skip to content

Instantly share code, notes, and snippets.

@muracms
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save muracms/4d0282e7d8c292a42dde to your computer and use it in GitHub Desktop.

Select an option

Save muracms/4d0282e7d8c292a42dde to your computer and use it in GitHub Desktop.
$.getJSON('/index.cfm/json/v1/default/content/').then(
function( resp ) {
if ( 'error' in resp ) {
//handle error
} else {
//do stuff
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment