map generation now seems to be very close to proper json.