Individual Property or Operation Response An individual property or operation response is represented as a JSON object. A single-valued property or operation response that has the null value does not have a representation; see . A property or operation response that is of a primitive type is represented as an object with a single name/value pair, whose name is value and whose value is a . A property or operation response that is of complex type is represented as a . A property or operation response that is of a collection type is represented as an object with a single name/value pair whose name is value. Its value is the JSON representation of a or . Example 22: primitive value { "@context": "http://host/service/$metadata#Edm.String", "value": "Pilar Ackerman" } Example 23: collection of primitive values { "@context": "http://host/service/$metadata#Collection(Edm.String)", "value": ["small", "medium", "extra large"] } Example 24: empty collection of primitive values { "@context": "http://host/service/$metadata#Collection(Edm.String)", "value": [] } Example 25: complex value { "@context": "http://host/service/$metadata#Model.Address", "Street": "12345 Grant Street", "City": "Taft", "Region": "Ohio", "PostalCode": "OH 98052", "Country@navigationLink": "Countries('US')" } Example 26: empty collection of complex values { "@context":"http://host/service/$metadata#Collection(Model.Address)", "value": [] } Note: the context URL is optional in requests.
Individual Property or Operation Response An individual property or operation response is represented as a JSON object. A single-valued property or operation response that has the null value does not have a representation; see . A property or operation response that is of a primitive type is represented as an object with a single name/value pair, whose name is value and whose value is a . A property or operation response that is of complex type is represented as a . A property or operation response that is of a collection type is represented as an object with a single name/value pair whose name is value. Its value is the JSON representation of a or . Example 22: primitive value { "@context": "http://host/service/$metadata#Edm.String", "value": "Pilar Ackerman" } Example 23: collection of primitive values { "@context": "http://host/service/$metadata#Collection(Edm.String)", "value": ["small", "medium", "extra large"] } Example 24: empty collection of primitive values { "@context": "http://host/service/$metadata#Collection(Edm.String)", "value": [] } Example 25: complex value { "@context": "http://host/service/$metadata#Model.Address", "Street": "12345 Grant Street", "City": "Taft", "Region": "Ohio", "PostalCode": "OH 98052", "Country@navigationLink": "Countries('US')" } Example 26: empty collection of complex values { "@context":"http://host/service/$metadata#Collection(Model.Address)", "value": [] } Note: the context URL is optional in requests.
odata-json-format-v4.01-wd05-2017-12-19.docx