0

Please see attached JPEG to demonstrate what I'm asking. Thanks![enter image description here

0

Try using $expand OData to query as the Author field itself is a separate object.

Example : http://server/site/_api/web/lists('guid')/items?$select=Title,Author/Id&$expand=Author/Id

0

Modify your rest api call to include

&$expand=Author&$select=Author/Id

Then retrieve value using

console.log(items[0].Author.Id); 
0

That looks like metadata -- it includes the etag and other rest endpoint to update the item. Those are very useful pieces of information and I'm not sure you can eliminate them entirely. Not sure why you would want to supress that.

This post talks about JSON light support which can flatten and somewhat reduce the size of the data coming back.

In a normal request you included an accept header with the value application\json;odata=verbose.

That page says change the value to application/json;odata=minimaldata.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.