Defining JSON containing test with commas in 'map' not as items?

Is it possible to define json like that below in Create JSON module but using ‘map’ option instead of inserting items manually? It is helpful for testing to define quickly JSON input, but it seems that structure with comma fails when switching toggle 'Map"

“topics”: [
“item 1, ab”,
“item 2, bc”,
“item 3, ef”
]

1 Like

Welcome to the Make community!

That’s a great idea! I’m sure others would agree that this is a nice feature to have.

You can submit this suggestion to the Idea exchange, under Platform ideas and improvements

Don’t forget to search for it first, just in case someone already suggested it, so that you don’t end up creating a duplicate.
Screenshot_2024-01-17_130153

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.

is there any way to define json input containing array of text with commas than adding it item by item?
Do I need to define external data source and import it as first step?
“topics”: [
“item 1, ab”,
“item 2, bc”,
“item 3, ef”
]

1 Like

Could you take a few screenshots of what you are referring to, and highlight the relevant features by drawing red circles around it?

I will simplify it.
How to define static input containing array of strings containing commas. I want to select random element from this each time I run workflow.
I don’t want to insert item by item, it may contain 100 elements.
I tried Create JSON or Set a variable, but none is able to handle strings with commas inside array.

[
“input string no 1, with comma”,
“input string no 2, with comma”,
“input string no 3, with comma”,
“input string no 4, with comma”
]

1 Like

In that case, I think you want to use the JSON “Parse JSON” module instead.

{
  "array": [
    "item 1",
    "item 2",
    "item 3"
  ]
}

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.

3 Likes

:slight_smile: JSON Parse as the first element. Yes, this is what I needed.
I tried to use Json create as the first.
Thank you.

2 Likes