# Error when trying to load my mod

**URL:** <https://discourse.cataclysmdda.org/t/error-when-trying-to-load-my-mod/9916>\
**Category:** The Toolbox\
**Created:** [June 23, 2015, 7:54pm UTC](https://discourse.cataclysmdda.org/t/error-when-trying-to-load-my-mod/9916 "2015-06-23T19:54:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)\
**Post date:** [June 23, 2015, 7:54pm UTC](https://discourse.cataclysmdda.org/t/error-when-trying-to-load-my-mod/9916/1 "2015-06-23T19:54:20Z")

</div>

My profession mod for a mobster shows up as intended in the mod menu, and a world is created with it just fine, but when I go to create a new character for this world, I get this error.

`Debug: Error loading data from json: data/mods/Mobster_Profession/mobster.json: line 3:6: expecting string but got '{'
[
  {
     {
     ^
10 10 "type": "profession", 10
  Press spacebar...
`

Here is the code for my mod, I have attempted to fix this but everything I have tried wont work!

```auto
[
	{		
	    {
		
        "type": "profession",
        "ident": "mobster",
        "name": "Mobster",
        "description": "You were a part of the local Mafia before the Cataclysm, now your connections to powerful people mean nothing.",
        "points": 3,
        "items": {
            "both": [
                "suit",
                "dress_shoes",
                "socks",
                "dress_shirt",
                "usp_45",
                "lighter",
                "pockknife",
				"holster",
				"45_acp",
				"45_acp"
            ],
			"skills": [
			{
				"level": 3,
				"name": "pistol"
			},
			{
				"level": 2,
				"name": "driving"
			},
			{
				"level": 2,
				"name": "gun"
			}
			],
            "male": [
                "boxer_shorts"
            ],
            "female": [
                "bra",
                "panties"
            ]
        }
    }
]
```

---

<div class="post-metadata">

**Author:** ![Random\_dragon](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Post date:** [June 23, 2015, 8:04pm UTC](https://discourse.cataclysmdda.org/t/error-when-trying-to-load-my-mod/9916/2 "2015-06-23T20:04:02Z")

</div>

First thing’s first, you derped up and put the skills in the middle of the starting items definition. :V

---

<div class="post-metadata">

**Author:** ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)\
**Post date:** [June 23, 2015, 8:06pm UTC](https://discourse.cataclysmdda.org/t/error-when-trying-to-load-my-mod/9916/3 "2015-06-23T20:06:21Z")

</div>

Oh jeez, where were they supposed to be?

---

<div class="post-metadata">

**Author:** ![Random\_dragon](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Post date:** [June 23, 2015, 8:09pm UTC](https://discourse.cataclysmdda.org/t/error-when-trying-to-load-my-mod/9916/4 "2015-06-23T20:09:38Z")

</div>

Above the items section, or…hmm. Mucking about with it to fix it. ^^"

EDIT: There we go. Second problem was an extra { at the start there.

```auto
[
	{
        "type": "profession",
        "ident": "mobster",
        "name": "Mobster",
        "description": "You were a part of the local Mafia before the Cataclysm, now your connections to powerful people mean nothing.",
        "points": 3,
            "skills": [
                {
                    "level": 3,
                    "name": "pistol"
                },
                {
                    "level": 2,
                    "name": "pistol"
                },
                {
                    "level": 2,
                    "name": "gun"
                }
            ],
        "items": {
            "both": [
                "suit",
                "dress_shoes",
                "socks",
                "dress_shirt",
                "usp_45",
                "lighter",
                "pockknife",
			"holster",
			"45_acp",
			"45_acp"
            ],
            "male": [
                "boxer_shorts"
            ],
            "female": [
                "bra",
                "panties"
            ]
        }
    }
]
```

---

<div class="post-metadata">

**Author:** ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)\
**Post date:** [June 23, 2015, 8:21pm UTC](https://discourse.cataclysmdda.org/t/error-when-trying-to-load-my-mod/9916/5 "2015-06-23T20:21:52Z")

</div>

You have no idea how thankful I am for this!

---

<div class="post-metadata">

**Author:** ![Random\_dragon](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Post date:** [June 23, 2015, 8:27pm UTC](https://discourse.cataclysmdda.org/t/error-when-trying-to-load-my-mod/9916/6 "2015-06-23T20:27:19Z")

</div>

It’s fine. With me the most common error is a missing comma, or one that’s someplace it shouldn’t me. Though I HAVE have surplus {s as well.

Also related, I’m sorely tempted to suggest a tommygun and fedora for style points. XP

---

<div class="post-metadata">

**Author:** ![Born\_tobe\_Mild](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/born_tobe_mild/32/462_2.png) [@Born\_tobe\_Mild](https://discourse.cataclysmdda.org/u/Born_tobe_Mild)\
**Post date:** [June 23, 2015, 8:36pm UTC](https://discourse.cataclysmdda.org/t/error-when-trying-to-load-my-mod/9916/7 "2015-06-23T20:36:29Z")

</div>

For now im just going to be amazed that I made a mod that wasn’t craptastic for once. But maybe a little further down the line!

---

<div class="post-metadata">

**Author:** ![Random\_dragon](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Random\_dragon](https://discourse.cataclysmdda.org/u/Random_dragon)\
**Post date:** [June 23, 2015, 8:42pm UTC](https://discourse.cataclysmdda.org/t/error-when-trying-to-load-my-mod/9916/8 "2015-06-23T20:42:43Z")

</div>

Hope it turns out well then. ^^
