Good day community,
I'm having trouble with adding the correct JSON path for my request body.
I have to send a POST request with the following JSON below:
{
"members": [
{
"@odata.type": "--TYPE HERE--",
"user@odata.bind": "--USER 1 HERE--"
},
{
"@odata.type": "--TYPE HERE--",
"user@odata.bind": "--USER 2 HERE--"
}
]
}
This is how my parameter structure looks:
Generated JSON here:
{
"chatType": "oneOnOne",
"members": [
{
"@odata": {
"type": "--TYPE HERE--"
},
"user@odata": {
"bind": "--USER 1 HERE--"
}
}
]
}
The problem with this structure is that it generates a nested key for type under @odata, and for bind as well. I don't wan't this to happen if possible.
Is there any way to get this to work using parameters in web service? Or would my only resort be to generate the request body via script?