# Easy way to turn made vehicle to json?

**URL:** https://discourse.cataclysmdda.org/t/easy-way-to-turn-made-vehicle-to-json/21755
**Category:** The Toolbox
**Created:** [October 23, 2019, 1:51pm UTC](https://discourse.cataclysmdda.org/t/easy-way-to-turn-made-vehicle-to-json/21755 "2019-10-23T13:51:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![The\_32-bit\_guy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_32-bit_guy/32/7222_2.png) [@The\_32-bit\_guy](https://discourse.cataclysmdda.org/u/The_32-bit_guy)
#### Post date: [October 23, 2019, 1:51pm UTC](https://discourse.cataclysmdda.org/t/easy-way-to-turn-made-vehicle-to-json/21755/1 "2019-10-23T13:51:04Z")

</div>

Is there a way to directly convert vehicle data from a save to json for a mod?

---

<div class="post-metadata">

### Author: ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)
#### Post date: [October 23, 2019, 3:52pm UTC](https://discourse.cataclysmdda.org/t/easy-way-to-turn-made-vehicle-to-json/21755/2 "2019-10-23T15:52:42Z")

</div>

there’s a `tools/vehicleDef.py` script that will turn all the vehicles in a save file into reasonably formatted JSON.

---

<div class="post-metadata">

### Author: ![The\_32-bit\_guy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/the_32-bit_guy/32/7222_2.png) [@The\_32-bit\_guy](https://discourse.cataclysmdda.org/u/The_32-bit_guy)
#### Post date: [October 28, 2019, 7:54am UTC](https://discourse.cataclysmdda.org/t/easy-way-to-turn-made-vehicle-to-json/21755/4 "2019-10-28T07:54:42Z")

</div>

I only seem to get this message from my python interpreter:

```
usage: temp_iiec_codefile.py [-h] save [vehicle] 
temp_iiec_codefile.py: error: the following 
arguments are required: save

[Program finished]
```

---

<div class="post-metadata">

### Author: ![mlangsdorf](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mlangsdorf/32/2462_2.png) [@mlangsdorf](https://discourse.cataclysmdda.org/u/mlangsdorf)
#### Post date: [October 28, 2019, 10:59am UTC](https://discourse.cataclysmdda.org/t/easy-way-to-turn-made-vehicle-to-json/21755/5 "2019-10-28T10:59:53Z")

</div>

You need to pass the path to the save file directory as an argument to interpreter, is  
`python ./tools/vehicleDef.py save/Sep2019_Magic` or whatever.
