# How to export Custom properties of tile map?

**URL:** https://discourse.mapeditor.org/t/how-to-export-custom-properties-of-tile-map/1918
**Category:** Questions
**Created:** [December 29, 2016, 5:05pm UTC](https://discourse.mapeditor.org/t/how-to-export-custom-properties-of-tile-map/1918 "2016-12-29T17:05:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Dugtrio\_Ramen](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@Dugtrio\_Ramen](https://discourse.mapeditor.org/u/Dugtrio_Ramen)
#### Post date: [December 29, 2016, 5:05pm UTC](https://discourse.mapeditor.org/t/how-to-export-custom-properties-of-tile-map/1918/1 "2016-12-29T17:05:13Z")

</div>

Hello,  
I’m new to Tiled so i don’t yet know how everything work.  
What i have is a tileset which i gave every tile a custom property “tag”. MOst of them are 0, and i put a few as 1.  
What i want to do is export the map as an array of the “tag property”, like  
[0,0,0,1,1,0  
0,0,1,0,0,1  
0,0,0,1,1,0]  
I tried to export as .json file and found  
"tileproperties":  
{  
"#":  
{  
“tag”:0  
},  
…and the rest of the property values, but i don’t know what the # represents so i can’t format it into the array. I don’t even thin this is properties of each tile in the map because when put a few random 5s for “tag” in the tileset, i didn’t place those tiles in the map, but the .json file still had some “tag”:5.

So is there an easy way to do this, preferably without having to use the commands?

---

<div class="post-metadata">

### Author: ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)
#### Post date: [January 5, 2017, 11:48am UTC](https://discourse.mapeditor.org/t/how-to-export-custom-properties-of-tile-map/1918/2 "2017-01-05T11:48:47Z")

</div>

The quoted number represents the local ID of the tile in the tileset, by which you can look up the tile properties.

However, the format you’re after looks a lot like what the .csv file export writes out (except for the `[` and `]` characters). If you would name your custom property “name” instead of “tag” then the property value will be used to write out the tile references. That should be a lot easier in your case then using the JSON format.
