Importing tile maps from Tiled as JSON

There is no need to do manual manipulations. You just need to go into map->map properties and change Tile layer format to csv.