Jack_C
March 19, 2024, 5:30am
1
i have a key in my data structure (called items) and its an aray of text
i also created a variable (ItemJSON) that is an array of json strings that im going to pass to this data structure
i pass it in my create json module like this
however i get this error, am i passing ItemJSON variable wrongly to the JSON module?
itemJSON
is not an array of text. It is an array of collections each with a single property json
You can use the built-in function map
to convert it into an array of text.
e.g.:
{{ map(16.itemJSON; json) }}
For more information, see https://www.make.com/en/help/functions/array-functions#map-complex-array--key--key-for-filtering---possible-values-for-filtering-separated-by-a-comma--
Links
Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —
General
Help Center Basics
Articles & Videos
2 Likes
Jack_C
March 19, 2024, 7:10am
3
@samliew
thank you
please check my follow up question if possible , thanks
thanks @samliew
i have an array like this
[image]
in create json i pass it into the items key
[image]
but getting this error
##### BundleValidationError
Validation failed for 2 parameter(s).
* Invalid collection in parameter 'items'.
* Invalid collection in parameter 'item
i tried set the item key in datastructure to array of string / array of collection but its still the same error
1 Like