I'll just explain it here :
Add a global string variable and set it to tilemap.tilesJSON
The variable is then the positional data for the tilemap.
Then later on for tilemap you can use the action 'load' and use the variable
You can also use the download action to make an external file of the tilesJSON information if that's useful for the game