code: def mergeWithLabels(json, firstField, firstFieldLabel, secondField, secondFieldLabel):
      
      merged = []
  
      for i in range(0, len(json[firstField])):
          merged.append({ firstFieldLabel : json[firstField][i],
                          secondFieldLabel : json[secondField][i] })
      return merged
docs: merge two fields of a json into an array of { firstFieldLabel : firstFieldLabel, secondFieldLabel : secondField }