Getting specific value from multiple bundle output

Hello team,

I am really struggling to get specific values from a parsed JSON. I am trying to get the five different “label” values to use as variable in the next model (they are product names) but I can’t seem to have them accessible as variable and I cant figure it out with the get function.

As per the image above, I am trying to get all the “label” value individually, ie.
harada_junmai_ginjo_hatsumomiji_yamaguchi
harada_junmai_daiginjo_hatsumomiji_yamaguchi
akitora_junmai_arimitsu_kochi
awa_thesparklingsakecompany_cambridgeshire_england
ringo_mansaku_apple_liqueur_hinomaru_jozo_akita

from

[
{
“label”: “harada_junmai_ginjo_hatsumomiji_yamaguchi”,
“score”: 0.9999630451202393
},
{
“label”: “harada_junmai_daiginjo_hatsumomiji_yamaguchi”,
“score”: 0.999937891960144
},
{
“label”: “akitora_junmai_arimitsu_kochi”,
“score”: 0.9998966455459595
},
{
“label”: “awa_thesparklingsakecompany_cambridgeshire_england”,
“score”: 0.999289870262146
},
{
“label”: “ringo_mansaku_apple_liqueur_hinomaru_jozo_akita”,
“score”: 0.9990204572677612
}
]

I am sure there is a way with a function, but can’t seem to figure it out.

Thanks for the help,
Robin

Welcome to the Make community!

Yes, that is possible. In your Parse JSON module, add this around your array JSON string

{"array": 

}

e.g.:

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Alternatively, you can use an Array Aggregator to combine the bundles.

Combining Bundles Using Aggregators

Every result (item/record) from trigger/iterator/list/search/match modules will output a bundle. This can result in multiple bundles, which then trigger multiple operations in future modules (one operation per bundle). To “combine” multiple bundles into a single variable, you’ll need to use an aggregator of some sort.

Aggregators are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the Array aggregator module. The next popular aggregator is the Text Aggregator which is very flexible and can apply to many use-cases like building of JSON, CSV, HTML.

You can find out more about the other types of aggregator modules here:

Question: Which type of aggregator do you think you’ll need?

For more information, see the “Mapping with arrays” link below. You should also do the Make Academy, which also covers the use of Iterators & Aggregators.

Getting Started

Help Centre Basics

Articles & Videos

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.