Hi There, I need some advice please!
I am getting datapoints from multiple HTTP ‘make a request’ modules successfully, however, I need to combine these into a JSON object (not a string)
I use a ‘set multiple variable’ module after the HTTP modules and then get a JSON string, but it seems that the module automatically wraps it in [ ] for the output.
I need to unwrap an array that is created by a ‘Set Multiple Variable’ module. The output is correct, but wrapped with [ ]and I need to unwrap it before I can use it as input to the Open AI ‘message an assistant’ module…
This is my output - wrapped in [ ]
[
{
“repScore”: 100,
“testCodes”: [ ],
“warningCodes”: null,
“ageDays”: 11053,
“whoisAvail”: “Unavailable”,
“registrantCountry”: “DE”
}
]
This what I need - JSON object only { }
{
"repScore": 100,
"testCodes": [],
"warningCodes": null,
"ageDays": 11053,
"whoisAvail": "Unavailable",
"registrantCountry": "DE"
}
Im hoping that I can get some advice.
Much appreciated.