Hi…
I am trying to push data through a REST service that accepts on Json format. The trouble that I have is when there is a need to push data as in the below format -
{
"alternate_email_addresses": [
"abc@xyx.com",
"jack@oye.com"
]
}
Not sure, how to get the xsd done for the above. The above is a valid json object - as verified through http://pro.jsonlint.com.
Have tried using the xsd as below
<xs:element name="alternate_email_addresses" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" name="alternate_email_addresses"/>
</xs:sequence>
</xs:complexType>
</xs:element>
but this generates the output message as -
{alternate_email_addresses" : [ {
"alternate_email_addresses" : "abc@xyx.com"
}, {
"alternate_email_addresses" : "jack@oye.com"
} ]
}
Any suggestions/help as to how this can be achieved?
Thanks!
aneeshmenon (BOB member since 2016-11-09)