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