rendering JSON
writes cs