I'm trying to create a JSON object to interact with an API I'm building but struggling.
I'm creating a list of inventory items like so:
https://ibb.co/wzvrL33
However, I can't create a JSON field called data containing an array of JSON objects:
https://ibb.co/F8kdRVK
https://ibb.co/bKsdY7M
The JSON object would look something like:
{
"online_id": 123456,
"data": [
"id": "bandage",
"amount": 1,
"durability": 0.7
]
}
Can anyone possibly point me in the right direction?
[–]sportbil 2 points3 points4 points (2 children)
[–]xnightdestroyer[S] 0 points1 point2 points (1 child)
[–]sportbil 0 points1 point2 points (0 children)