added json.dump to figure id