Fix a bug in melon and add the map in JSON