Support formatting a record as JSON