Question by
Squishyaura · Sep 21, 2016 at 11:39 PM ·
jsondifferentfield
Different Json fields
Hi, I have a question related to Json.
My code loops through every item in the json file:
My question though is how do I add for example a weapon that has differrent fields from the fields shown above. For example I want to add a weapon with the "implicit" being "implicit": {"damage": 5, ...}", however since the items with id: 0 and id: 1 don't have the damage field, I will get this error:
Any work-around for this? Thanks!
19b73c0221990d152353183a2f2bb2bf.png
(26.2 kB)
1228e5e36449a0e3abd29a668742eed5.png
(7.2 kB)
Comment