Create JSON array from Search for?

Hi.

What’s the best way to create a JSON array from the result of a Search for that returns multiple values? I’d like to avoid loading data to the page to create the array.

Here’s an example:

Do a Search for User = 1 where Unsubscribed = “Yes”. I need to transform this to:

{“User”: “1”,
“Email Type” = [“News”, “Communication”]
}

How might I create the Email Type array?

image

1 Like

Hi @kramwe - did you have any luck finding a solution to this problem?