Change slot.records json to array with segments in record objs