Hi All,
To pass data via API i am required to produce a json string as follows:
"objects": [
{
"id": "#56765DFSG8219RR",
"type": "COLLECTION",
"catalog_data": {},
"item_data": {},
"is_deleted": false,
"item_data": {
"seen_globally": true
}
},
{
"id": "#KK165DFSG8219RR",
"type": "COLLECTION",
"catalog_data": {},
"item_data": {},
"is_deleted": false,
"item_data": {
"seen_globally": true
}
]
The issue I have is that object is a List and in normal cases would produce 0,1,2,3 etc for the map objects in the list. In the case of this API it is rejected.
If I place the data in a single map it gets over written each loop based on the keys!
Any ideas on how to produce the example above, thanks.
Philip
To pass data via API i am required to produce a json string as follows:
"objects": [
{
"id": "#56765DFSG8219RR",
"type": "COLLECTION",
"catalog_data": {},
"item_data": {},
"is_deleted": false,
"item_data": {
"seen_globally": true
}
},
{
"id": "#KK165DFSG8219RR",
"type": "COLLECTION",
"catalog_data": {},
"item_data": {},
"is_deleted": false,
"item_data": {
"seen_globally": true
}
]
The issue I have is that object is a List and in normal cases would produce 0,1,2,3 etc for the map objects in the list. In the case of this API it is rejected.
If I place the data in a single map it gets over written each loop based on the keys!
Any ideas on how to produce the example above, thanks.
Philip