How to convert two Array : <p>What is the best way to convert:</p>

<pre><code>["Isolated-1", "SVT_FedPortGroup", "SVT_StoragePortGroup", "VM Network", "test-pg-2002"]
</code></pre>

<p>and this : </p>

<pre><code>["target_Isolated-1", "target_SVT_FedPortGroup", "target_SVT_StoragePortGroup","target_VM Network" ,"target_test-pg-2002"]; 
</code></pre>

<p>to:</p>

<pre><code>"NetworkMaps": [
    {
        "ENVID": null,
        "SourcePG": "Isolated-1",
        "TargetPG": "target_Isolated-1"
    },
    {
        "ENVID": null,
        "SourcePG": "VM Network",
        "TargetPG": "target_SVT_FedPortGroup"
    }...
]
</code></pre>

<p>I need to to merge two array with respective values.
For example</p>

<pre><code> arr1 : ["a", "b", "c"]; 
 arr2 : ["apple", "ball", "cat"];

result : [{source: "a",target: "apple"}, {source: "b",target: "ball"},{source: "c",target: "cat"}]
</code></pre>
