towards writing JSONs