add json method to dump the full record