2.2.6.3.8 EDMSimpleType Property

A property of type EDMSimpleType MUST be represented as a JSON name/value pair. The name in the name/value pair MUST be equal to the name of the Entity Data Model (EDM) property and the value MUST be set to the value of the property. The value is formatted, as specified in Common Verbose JSON Serialization Rules for All EDM Constructs (section 2.2.6.3.1).

When represented as part of the Verbose JSON representation of an EntityType or ComplexType, the syntax of an EDMSimpleType property formatted in Verbose JSON is as follows.

 entityPropertyInVJson =  quotation-mark entityProperty quotation-mark
                         name-seperator
                         entityPropertyValueInVJson
  
 entityPropertyValueInVJson = <EDMSimple type serialized as per section 2.2.6.3.1>

When represented as a standalone construct, the syntax of the Verbose JSON representation of an EDMSimpleType is defined by the grammar listed in this section. The grammar rule "entityPropertyInVJson" defines the Verbose JSON representation of an EDMSimpleType property that can be used in all versions of request payloads and OData 1.0 response payloads. The grammar rule "entityPropertyInVJson2" defines the OData 2.0 and OData 3.0 Verbose JSON representations of an EDMSimpleType property for response payloads only.

 ; Request and OData 1.0 response Verbose JSON representation of a property:
 entityPropertyInVJson  = quotation-mark entityProperty quotation-mark
                         name-seperator
                         entityPropertyValueInVJson
  
 ; OData 2.0 and OData 3.0 response Verbose JSON representation of a property:
 entityPropertyInVJson2 = quotation-mark "results" quotation-mark
                         name-seperator
                         begin-object
                         quotation-mark entityProperty quotation-mark
                         name-seperator
                         entityPropertyValueInVJson
                         end-object