Currently, I am in the process of transferring data from one system to another. The developer at the remote system has provided me with an example of a JSON structure that should be included in the body of the REST call.
The structure is outlined below:
{
"case": {
"status": "some status",
"fields": {
"field":
[
{
"name": "some name",
"selection": "No"
},
{
"name": "some name",
"approved": true,
"reason": "some string"
}
]
}
}
}
I can easily create most of this structure except for the part where there are double curly brackets ({{...}}) at the start and end.
In my scenario, I will be using JavaScript to generate this structure and include it in the body of the REST message as a JSON format.
Is it feasible to place the "case" element within an additional layer of curly brackets? If so, could you provide guidance on how to accomplish this?