Untitled conversation
- User
[ { "event": 3, "parties": [ { "x": 10900, "id": 0, "y": 1771, "rot": 51, "party_name": "bobus" }, { "x": -78914, "id": 1, "y": -47758, "rot": 328, "party_name": "{!}temp party" },
} ]
How to iterate through "parties" and get "party_name" in lua?
- Assistant
It looks like there's a small formatting error in your JSON-like structure, likely due to it missing a closing square bracket
]for the surrounding array and a closing curly bracket for the first object (that includes the , , etc.). Make sure your structure is formatted correctly in your Lua script. Then, you can parse this JSON-like structure after correcting it.