If the data-type is a list you need to wrap it in single brackets: [“item1”, “item2”].
You cant do that twice like you do, so this is not valid: [“item 1, item 2”], [“item3”, “item4”]
So basically it would like like below:
{
"Category_Single": "This is a category",
"Category_List": ["category_1", "category_2"],
"Item_Single": "This is an item",
"Item_List": ["FirstSearch", "SecondSearch"]
}
Be aware that if your are referencing and item, say you have a product type of “apple” that you reference in your list, that item needs to exist, otherwise your post request will fail. You then need to reference the full id.
Ahh, your talking about a post command with bubble api connector. I thought you were trying to use post (from an external app/postman) to create an item.
Could you create your json object in a hidden text element and use that in the api connector?
Right, I’m POSTing this from Bubble to an external endpoint using the backend workflows so unfortunately, I cannot create json on the page to handle the formatting.