Adding a collection item to an array

Hi! I’m getting a list of options from a Google Form question and I’m attempting to update the question with a new option.
The list of options come as an array of collections, like so:
Screenshot 2023-12-12 at 17.39.46

I’m trying to add a third item but I don’t seem to be able to do it in the same format. If I use the “add” function, the value is passed as a string instead of a collection. I tried different combinations with the the ToArray and ToCollection functions and no success.
I can’t seen to find a way to add a collection that has “value” as the key and any word as its value, which I think is what I need.

Any ideas on what I might be doing wrong? Some failed attempts:

image (4)

Well one way of creating the new collection before adding it to your existing array is use the Parse JSON module:

{ "item": {
  "iuiuiuiuiu": null,
  "pop": null
}}

Then you can use the built-in function add

Screenshot_2023-12-13_091230

Output

Screenshot_2023-12-13_091240

2 Likes