# Multiple JSON root elements

**URL:** <https://discourse.cataclysmdda.org/t/multiple-json-root-elements/22388>\
**Category:** The Toolbox\
**Created:** [January 4, 2020, 1:31am UTC](https://discourse.cataclysmdda.org/t/multiple-json-root-elements/22388 "2020-01-04T01:31:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jninja](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/jninja/32/7800_2.png) [@Jninja](https://discourse.cataclysmdda.org/u/Jninja)\
**Post date:** [January 4, 2020, 1:31am UTC](https://discourse.cataclysmdda.org/t/multiple-json-root-elements/22388/1 "2020-01-04T01:31:51Z")

</div>

I have been testing some code for a mod and I found that it was missing some parts but now I’m getting a message saying it contains multiple JSON root elements does anyone know what causes this to happen?

---

<div class="post-metadata">

**Author:** ![Axema](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/axema/32/10822_2.png) [@Axema](https://discourse.cataclysmdda.org/u/Axema)\
**Post date:** [January 4, 2020, 2:07am UTC](https://discourse.cataclysmdda.org/t/multiple-json-root-elements/22388/2 "2020-01-04T02:07:47Z")

</div>

Paste the code, and see if we can fix it.

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [January 4, 2020, 10:12am UTC](https://discourse.cataclysmdda.org/t/multiple-json-root-elements/22388/3 "2020-01-04T10:12:02Z")

</div>

If you are getting some error message and want an explanation for it, try not to retell this message with your own words. Just paste the whole text or screenshot of this message instead.

If you have a code that you suspect causing an issue, don’t make us guess what couls be wrong. Just show this code instead.

---

<div class="post-metadata">

**Author:** ![Jninja](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/jninja/32/7800_2.png) [@Jninja](https://discourse.cataclysmdda.org/u/Jninja)\
**Post date:** [January 4, 2020, 2:12pm UTC](https://discourse.cataclysmdda.org/t/multiple-json-root-elements/22388/4 "2020-01-04T14:12:06Z")

</div>

[  
{  
“id”: “mon\_Parkour\_zombie”,  
“type”: “MONSTER”,  
“name”: “Parkour Zombie”,  
“description”: “This zombie seems extremely fast and capable of fighting, and it just did a sick flip.”,  
“default\_faction”: “zombie”,  
“bodytype”: “human”,  
“species”: [“ZOMBIE”, “HUMAN”],  
“volume”: “62500 ml”,  
“weight”: “81500 g”,  
“hp”: 80,  
“speed”: 100,  
“material”: [“flesh”],  
“symbol”: “P”,  
“color”: “white\_magenta”,  
“aggression”: 100,  
“morale”: 100,  
“melee\_skill”: 6,  
“melee\_dice”: 4,  
“melee\_dice\_sides”: 3,  
“melee\_cut”: 2,  
“dodge”: 3,  
“vision\_day”: 40,  
“vision\_night”: 3,  
“harvest”: “zombie”,  
“path\_settings”: { “max\_dist”: 4 },  
“special\_attacks”: [  
[“scratch”, 10],  
{  
“type”: “bite”,  
“cooldown”: 5,  
“damage\_max\_instance”: [{ “damage\_type”: “stab”, “amount”: 10, “armor\_multiplier”: 0.7 }]  
}  
],  
“death\_drops”: “default\_zombie\_death\_drops”,  
“death\_function”: [“NORMAL”],  
“burn\_into”: “mon\_zombie\_scorched”,  
“flags”: [“SEES”, “HEARS”, “SMELLS”, “WARM”, “BASHES”, “POISON”, “NO\_BREATHE”, “REVIVES”, “PUSH\_MON”, “CLIMBS”, “FILTHY”]  
}  
],

```
"default" : "mon_zombie",
"monsters" : [
    { "monster" : "mon_Parkour_zombie", "freq" : 60, "multiplier" : 0 }
    ]
```

---

<div class="post-metadata">

**Author:** ![Jninja](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/jninja/32/7800_2.png) [@Jninja](https://discourse.cataclysmdda.org/u/Jninja)\
**Post date:** [January 4, 2020, 2:21pm UTC](https://discourse.cataclysmdda.org/t/multiple-json-root-elements/22388/5 "2020-01-04T14:21:19Z")

</div>

Also I relize I forgot one ] and }

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [January 4, 2020, 4:59pm UTC](https://discourse.cataclysmdda.org/t/multiple-json-root-elements/22388/6 "2020-01-04T16:59:58Z")

</div>

```auto
[
  {
    "id": "mon_Parkour_zombie",
    "type": "MONSTER",
    "name": "Parkour Zombie",
    "description": "This zombie seems extremely fast and capable of fighting, and it just did a sick flip.",
    "default_faction": "zombie",
    "bodytype": "human",
    "species": ["ZOMBIE", "HUMAN"],
    "volume": "62500 ml",
    "weight": "81500 g",
    "hp": 80,
    "speed": 100,
    "material": ["flesh"],
    "symbol": "P",
    "color": "white_magenta",
    "aggression": 100,
    "morale": 100,
    "melee_skill": 6,
    "melee_dice": 4,
    "melee_dice_sides": 3,
    "melee_cut": 2,
    "dodge": 3,
    "vision_day": 40,
    "vision_night": 3,
    "harvest": "zombie",
    "path_settings": { "max_dist": 4 },
    "special_attacks": [
      ["scratch", 10],
      {
        "type": "bite",
        "cooldown": 5,
        "damage_max_instance": [{ "damage_type": "stab", "amount": 10, "armor_multiplier": 0.7 }]
      }
    ],
    "death_drops": "default_zombie_death_drops",
    "death_function": ["NORMAL"],
    "burn_into": "mon_zombie_scorched",
    "flags": ["SEES", "HEARS", "SMELLS", "WARM", "BASHES", "POISON", "NO_BREATHE", "REVIVES", "PUSH_MON", "CLIMBS", "FILTHY"]
  }
]

```

---

<div class="post-metadata">

**Author:** ![Jninja](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/jninja/32/7800_2.png) [@Jninja](https://discourse.cataclysmdda.org/u/Jninja)\
**Post date:** [January 4, 2020, 5:11pm UTC](https://discourse.cataclysmdda.org/t/multiple-json-root-elements/22388/7 "2020-01-04T17:11:27Z")

</div>

Thank you that fixed the issue
