Splitting JSON single bundle into several

Hi there !

  • I’m building a scenario which will be ran every day at 8 am. However, I would like to except certains days, whose list I can get with an HTTPs request (API call). I’m getting a JSON with a collection of dates, which I would like to iterate.

{
“2028-01-01”: “1er janvier”,
“2028-04-17”: “Lundi de Pâques”
}

  • I’ve searched through parsing and creating JSON modules, Array agregators and iterators, without finding the right way. Data structure of the JSON is detected automatically, but I’m just not sure I have the right data structure to iterate, or found the right way to iterate.

Welcome to the Make community!

If I’m understanding you correctly, you want each date in the current single output bundle to be individual bundles? Can you provide the output bundle for module [3]?

1.

Please share screenshots of the module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2.

Please export the scenario blueprint file to allow others to replicate the issue. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826

Uploading it here will look like this:

blueprint.json (12.3 KB)

3.

Please provide the input/output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the contents as a bundle.json file, and upload it here into this discussion thread:

Screenshot_2023-10-06_141025

Following these steps will allow others to assist you here. Thanks!

2 Likes

Hey there ! Thanks for the reply.

Here are the inputs / ooutputs / blueprint :slight_smile:
Module28input.json (9.2 KB)
Module28output.json (10.6 KB)
Module3output.json (11.9 KB)
Module3input.json (527 Bytes)
blueprint.json (21.4 KB)

You will need to use a text parser to convert the JSON string into array, before you Parse JSON.

Pattern:

\", \"

New Value:

"}, {"

Text:

[{{ 3.data }}]

Global Match: YES

Output, individual bundles:

2 Likes