I’m feeling quite frustrated right now. For about two hours, I’ve been trying to merge two or more JSON strings into one.
Here’s what I’ve done so far: I receive a response from OpenAI and convert that response into structured data. Then, I aggregate a dataset using JSON Aggregate to create a JSON string.
Now, here’s where I’m stuck: how can I combine the different JSON strings from various runs into one?
I’ve tried everything:
Aggregate to JSON > Aggregate to JSON
Aggregate to JSON > Text Aggregator
Aggregate to JSON > Iterator > Aggregate to JSON
Aggregate to JSON > Parse JSON > Aggregate to JSON
Aggregate to JSON > Set Variable
I even consulted your AI, but it hasn’t been helpful.
I still end up with separate bundles and cannot produce a complete JSON string.
What is the Output bundle of module [176], and what final JSON structure do you want, can you please provide a sample?
Please provide the output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
To simple merge the JSON one by one, you can remove first two substrings and last two substrings from each JSON (remove square and curly brackets from both ends), then join by comma (,) and then finally enclose with {} and .