Mapping Connect REST - Dynamically generated payload
Hi ,
We are facing an issue with mapping the JSON Response which is generated dynamically from the client end. The payload is having a product list which is different for each client,
Sample JSON is as follows. Under “resources” object there are list of objects which are not included with list notation. The “TEST 1” and “TEST 2” are dynamically generated resources.
Since resources name tags “TEST 1” , “TEST 2” are dynamic we are unable to map them to a Page. Appreciate your suggestions on this.
{
"products": [
{
"resources": {
"TEST 1": {
"Identification": "TEST 1",
"annotationSpecId": "42962317343719424",
"classification": {
"score": 0.026214128
},
"displayName": "thanks"
}
}
},
{
"resources": {
"TEST 2": {
Hi ,
We are facing an issue with mapping the JSON Response which is generated dynamically from the client end. The payload is having a product list which is different for each client,
Sample JSON is as follows. Under “resources” object there are list of objects which are not included with list notation. The “TEST 1” and “TEST 2” are dynamically generated resources.
Since resources name tags “TEST 1” , “TEST 2” are dynamic we are unable to map them to a Page. Appreciate your suggestions on this.
{
"products": [
{
"resources": {
"TEST 1": {
"Identification": "TEST 1",
"annotationSpecId": "42962317343719424",
"classification": {
"score": 0.026214128
},
"displayName": "thanks"
}
}
},
{
"resources": {
"TEST 2": {
"Identification": "TEST 2",
"annotationSpecId": "42962317343719424",
"classification": {
"score": 0.026214128
},
"displayName": "thanks"
}
}
}
]
}