Tilesource

I have a question regarding the tilesource file, I’m using tiled map editor but I find the current exporters a bit limited for my use case and I’m trying to come with a custom exporter.

I notice that if the collision is set to the same image the following gets created for each tile

convex_hulls {
   index: 310
   count: 6
   collision_group: ""
}

what does this index and count represent? I can’t remove them but I can set them to 0, what would it happen if both are set to 0. I would like that my exporter creates this file too.

Any guidance would be appreciated