Forum Academy Marketplace Showcase Pricing Features

Creating JSON array using format as text (need help)

I am trying to send this data through an api.

The api works with a single line item.
This is the error when I use the expression above

you can’t have any spaces after each ,

I see you’ve pressed the ‘enter’ key to move down a place for legibility.

ie: {“key”: “value”,“key2”: “value2”}

1 Like

I also recommend using the :formatted as Json operator where you can (you then won’t need the " marks) to make sure nothing in your data is not json friendly and causing it to fail.

1 Like

I found the problem ended up being that I needed to move the } at the end of the formatted as text and put it inside the formatted content at the end.

1 Like

Glad it worked out for you!