Convert the character_map to JSON as well