Fix JSON for table arrays.