Hello
I have created a JSON body but I need to reconstruct it so I can send it in a REST API.
Input :
{
"systemId" : "4",
"systemName" : "Main",
"items.nid" : "123",
"items.birth_date" : "1978-01-01",
"items.last_name" : "Willson",
"items.nationality" : "GN",
"formId": 1
}
Output :
{
"formId": 1,
"systemId" : "4",
"systemName" : "Main",
"items" {
"nid" : "123",
"birth_date" : "1978-01-01",
"last_name" : "Willson",
"nationality" : "GN"
}
}
I used JoltTransformJSON but with no luck always get null as a result, I can't figure how to regroup them based on the name "items.*" . how can I regroup my items or is there a better way to solve this point ?