Multiple JSON root elements

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?

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

1 Like

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.

[
{
“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 }
    ]

Also I relize I forgot one ] and }

[
  {
    "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" ]
  }
]

Thank you that fixed the issue