re-implemented typeclass instances for JSON formatting of cells within new framework