How to get json data from REST api in SharePoint 2013 list?
Regards,
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityElaborating a bit on Roman's answer:
jQuery.ajax({
url: "http://thisRestServiceURL",
type: "GET",
headers: {
"accept": "application/json;odata=verbose",
"content-type": "application/json;odata=verbose",
"X-RequestDigest": $("#__REQUESTDIGEST").val(),
},
This would work for JQuery sending/receiving JSON Data.
You should pass Accept header, for example: "accept": "application/json;odata=verbose"