# Expected json array

**URL:** https://discourse.cataclysmdda.org/t/expected-json-array/29316
**Category:** The Lab
**Created:** [July 14, 2024, 8:32pm UTC](https://discourse.cataclysmdda.org/t/expected-json-array/29316 "2024-07-14T20:32:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MrAbrahms](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@MrAbrahms](https://discourse.cataclysmdda.org/u/MrAbrahms)
#### Post date: [July 14, 2024, 8:32pm UTC](https://discourse.cataclysmdda.org/t/expected-json-array/29316/1 "2024-07-14T20:32:47Z")

</div>

I’m trying to add a couple of guns (single-shot vehicle-mounted railguns) to one of my mods, but when it comes to the magazines, I’m getting this error, “Expected json array” on the item\_restriction part.

“pocket\_data”: [  
{  
“pocket\_type”: “MAGAZINE”,  
“item\_restriction”: { “rebar\_bolt”: 1 }  
}  
]

(note, it has a bunch of ammo types but I reduced it to 1 while fixing this error.)

As far as I can tell, it has one. I can’t see any syntax/punctuation errors, and the format is the same as

“pocket\_data”: [  
{  
“pocket\_type”: “MAGAZINE”,  
“ammo\_restriction”: { “454”: 5, “410shot”: 5, “45colt”: 5 },  
“allowed\_speedloaders”: [“454\_speedloader5”]  
}  
]

and

“pocket\_data”: [{ “pocket\_type”: “MAGAZINE”, “rigid”: true, “ammo\_restriction”: { “50”: 1 } }]

both from the base game, which aren’t producing any errors.

---

<div class="post-metadata">

### Author: ![MrAbrahms](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@MrAbrahms](https://discourse.cataclysmdda.org/u/MrAbrahms)
#### Post date: [July 16, 2024, 4:25am UTC](https://discourse.cataclysmdda.org/t/expected-json-array/29316/2 "2024-07-16T04:25:39Z")

</div>

Slept on it and found the problem. Typed “item\_restriction” instead of “ammo\_restriction”.
