@xyz said:
I'm seriously curios what would be the data structure that json can't handle. It's designed to serialize complete javascript object model. That's quite a lot of versatility.
In my opinion JSON can handle all structures but I will translate my question from another programming forum for you.
So question was I have a database of items for my game:

I create this item database in docs.google.com/spreadsheets and then I use plugin to change it to JSON file. That solution was very good until I didn't have a status effects, f.e. I want to add to items any effects like poison,healing... editable on the level of file, item X will have HEALING every 5 second 10HP and item Y POISON, this is an example:
{
"10001": {
"Name": "Small Health Potion",
"Category": "Potion",
"Type": "HealthPotion",
"Texture": "SmallHealthPotion",
"Stackable": true,
"EquipmentSlot": null,
"Attack": null,
"Defense": null,
"Max_health": null,
"PotionHealth": 20,
"PotionMana": null,
"FoodSatiation": null,
"Description": "Small health potion will give you an instant health.",
"Poison": { "Damage" : 100, "Time" : 20, "Tick": 15 }
},
So I got the answer that JSON is good for hierarchical data structures but bad for Cartesian product and XML will be much better for more complex data structures. Actually I want to stick to JSON at least in my current project but I wanted to know for future games what data structures are used for more complex games.
I found a solution to manage my item database by JSONBuddy app:
