I’m trying to return some nested JSON on an API call to Bubble and I just don’t get what the process should be:
I have an Order data type with a few fields including a list of Assigned Items, which have their own data type. One Order can have multiple Assigned Items and each Assigned Item has only one Order.
I can return a list of Orders just fine but I’ve no clue how to include associated Assigned Items in the same JSON, is this at all possible?
e.g.
[
{
“id”: 4
“assigned_items”:[
{
“id”: 2,
“item_name”: “Item”
},
{
“id”: 8,
“item_name”: “Item 2”
}
]
}
]
Thanks for replying @martijntenpas - I think I may have confused the issue a bit: I’m making a call to an API workflow to get data out of Bubble to an external site, not passing data into Bubble.
Thanks!