# Is there a way to have all properties included in exported json

**URL:** <https://discourse.mapeditor.org/t/is-there-a-way-to-have-all-properties-included-in-exported-json/5984>\
**Category:** Uncategorized\
**Created:** [January 26, 2023, 2:59am UTC](https://discourse.mapeditor.org/t/is-there-a-way-to-have-all-properties-included-in-exported-json/5984 "2023-01-26T02:59:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tully\_Edson](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/tully_edson/32/3991_2.png) [@Tully\_Edson](https://discourse.mapeditor.org/u/Tully_Edson)\
**Post date:** [January 26, 2023, 2:59am UTC](https://discourse.mapeditor.org/t/is-there-a-way-to-have-all-properties-included-in-exported-json/5984/1 "2023-01-26T02:59:00Z")

</div>

It looks like if custom properties have default values tiled just skips them. Is there a way to fore everything to be exported.

---

<div class="post-metadata">

**Author:** ![eishiya](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/eishiya/32/2534_2.png) [@eishiya](https://discourse.mapeditor.org/u/eishiya)\
**Post date:** [January 26, 2023, 4:05am UTC](https://discourse.mapeditor.org/t/is-there-a-way-to-have-all-properties-included-in-exported-json/5984/2 "2023-01-26T04:05:12Z")

</div>

In Edit \> Preferences, enable “Resolve object types and properties” in the Export Options.

---

<div class="post-metadata">

**Author:** ![Tully\_Edson](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/tully_edson/32/3991_2.png) [@Tully\_Edson](https://discourse.mapeditor.org/u/Tully_Edson)\
**Post date:** [January 26, 2023, 1:33pm UTC](https://discourse.mapeditor.org/t/is-there-a-way-to-have-all-properties-included-in-exported-json/5984/3 "2023-01-26T13:33:53Z")

</div>

![Untitled](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/2X/b/bb31adc913508f1babc879ca1a38fa909a3b3509.png)  
 ![json](https://canada1.discourse-cdn.com/flex035/uploads/mapeditor/original/2X/6/639fa17a130330143f8d702ea6ec6a5a93ea77fd.png)

Double check that Im not doing something wrong. That setting is set, and you can see the properties, but in the output json the value is still empty.

---

<div class="post-metadata">

**Author:** ![Tully\_Edson](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/tully_edson/32/3991_2.png) [@Tully\_Edson](https://discourse.mapeditor.org/u/Tully_Edson)\
**Post date:** [January 26, 2023, 1:36pm UTC](https://discourse.mapeditor.org/t/is-there-a-way-to-have-all-properties-included-in-exported-json/5984/4 "2023-01-26T13:36:48Z")

</div>

Oh I just realized “collides” shows up and it is the default. Also the base object info for “completionTrigger” shows up even though all of its members are default. So my guess is a bug with that setting and members of objects being default, or is there another setting I’m missing?

Yes I just double checked. For the “metaInfo” property description and name show up, but itemTypeID does not.

---

<div class="post-metadata">

**Author:** ![eishiya](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/eishiya/32/2534_2.png) [@eishiya](https://discourse.mapeditor.org/u/eishiya)\
**Post date:** [January 26, 2023, 2:59pm UTC](https://discourse.mapeditor.org/t/is-there-a-way-to-have-all-properties-included-in-exported-json/5984/5 "2023-01-26T14:59:23Z")

</div>

This setting currently only affects top-level properties I believe, it does not resolve sub-properties of properties that are themselves classes yet (custom property types are a relatively recent addition). Relevant issue: [#3411](https://github.com/mapeditor/tiled/issues/3411)

Unfortunately there’s no good workaround that I’m aware of. Even scripts don’t have a way to get at these values yet AFAIK. You might have to manually set all those properties, or load the defaults in your engine (or set the default values to the engine’s defaults) to avoid the need to use the resolve export option.
