def METHOD_NAME(self, prefix='', qCompress=False, maxLevelPerFile=10, outDir=''):
    """Output the tiles tree in the JSON format"""
    fName = outDir + prefix + "x%.2d_%.2d_%.2d.json" % (2 ** self.level, self.i, self.j)
    # Actually write the file with maxLevelPerFile level
    with open(fName, 'w') as f:
        self.__subOutJSON(prefix, qCompress, maxLevelPerFile, f, 0, outDir)
    if (qCompress):
        with open(fName) as ff:
            fout = gzip.GzipFile(fName + ".gz", 'w')
            fout.write(ff.read())
            fout.close()
            os.remove(fName)