# How to use JSON format

**URL:** <https://discourse.mapeditor.org/t/how-to-use-json-format/1594>\
**Category:** Questions\
**Created:** [August 21, 2016, 7:22am UTC](https://discourse.mapeditor.org/t/how-to-use-json-format/1594 "2016-08-21T07:22:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piranha](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@Piranha](https://discourse.mapeditor.org/u/Piranha)\
**Post date:** [August 21, 2016, 7:22am UTC](https://discourse.mapeditor.org/t/how-to-use-json-format/1594/1 "2016-08-21T07:22:05Z")

</div>

Hi

Just got started with tiled. I created a map with 2 layers, 1 with my background grass and then another layer with some road tiles. I saved the map as json. When I look at the json I can’t see how I’ll be able to tell what graphic a specific tile should have in my game.

In layers there is data, a long array of numbers but what do these numbers correlate to? For example 12 is in the array repeatedly but there is noting else in the file that 12 could correlate to.

tilesets have something called firstgid but I wasn’t able to understand from the TMX documentation what it’s good for. I tried saving my map as TMX as well and it became huge. Is there a manual for JSON or only for TMX?

---

<div class="post-metadata">

**Author:** ![Piranha](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@Piranha](https://discourse.mapeditor.org/u/Piranha)\
**Post date:** [August 21, 2016, 7:29am UTC](https://discourse.mapeditor.org/t/how-to-use-json-format/1594/2 "2016-08-21T07:29:33Z")

</div>

Found the answer after a bit further reading in the documentation. It was a bit too sophisticated for me but now I understand :-).

For anyone who have the same question as me read the whole section on data especially the last part.

---

<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:** [August 22, 2016, 8:09am UTC](https://discourse.mapeditor.org/t/how-to-use-json-format/1594/3 "2016-08-22T08:09:55Z")

</div>

Yeah, sorry for hiding that information only on the [TMX format page](http://doc.mapeditor.org/reference/tmx-map-format/#data). The [JSON format documentation](https://github.com/bjorn/tiled/wiki/JSON-Map-Format) really needs more love (and should be moved from that old location), and the system with the global tile IDs could probably use its own section entirely.
