2.2.6.3.7 Collection of EDMSimpleType Values

A collection of EDMSimpleType values MUST be represented as an array of JSON primitives. Each element in the array represents a single primitive type value.

The syntax of the Verbose JSON representation of a collection of EDMSimpleType values is defined by the grammar listed in this section. The grammar rule "entityCollPrimValueInVJson" defines the Verbose JSON representation of a collection of EDMSimpleType values that can be used in all versions of request payloads and OData 1.0 response payloads. The grammar rule "entityCollPrimValueInVJson2" defines the OData 2.0 Verbose JSON representation of a collection of EDMSimpleType values for response payloads only. The grammar rule "entityCollPrimValueInVJson3" defines the OData 3.0 Verbose JSON representation of a collection of EDMSimpleType values for response payloads only.

 ; Request and OData 1.0 response Verbose JSON representation of a collection of EDMSimpleType values:
 entityCollPrimValueInVJson =  begin-array
                              entityPropertyValueInVJson
                              ; see section 2.2.6.3.8
                              *(value-seperator entityPropertyValueInVJson)
                              end-array
  
 ; OData 2.0 response Verbose JSON representation of a collection of EDMSimpleType values:
 entityCollPrimValueInVJson2 = quotation-mark "results" quotation-mark
                              name-seperator
                              begin-array
                              entityPropertyValueInVJson
                              ; see section 2.2.6.3.8
                              *(value-seperator entityPropertyValueInVJson)
                              end-array
                     
 ; OData 3.0 response Verbose JSON representation of a collection of EDMSimpleType values:
 entityCollPrimValueInVJson3 = begin-object
                       [collEdmSimpleMetadataNVP value-seperator]
                       resultsNVP
                       end-object
  
 collEdmSimpleMetadataNVP =   quotation-mark "__metadata" quotation-mark
                     name-seperator
                     begin-object
                     [collEdmSimpleTypeNVP]
                     end-object
  
 collEdmSimpleTypeNVP = quotation-mark "type" quotation-mark
                     name-seperator
                     quotation-mark "Collection(" edmSimpleTypeNVP ")" quotation-mark
  
 edmSimpleTypeNVP =; EDM SimleType name