Insert JSON object using jsonpath in javascript? : <p>Is there any way to insert a JSON object in the middle of another JSON object using jsonPath? I'm using Javascript in the Postman test script after I recieve a JSON object as a response, and I need to insert JSON data in the middle of the response. I can access the part of the response I want using "$..decision[0]". Is there a way to add data using "$..decision[1]" so that this:</p>

<pre><code> ...
"decision": [
            {
                "var1": 43,
                "var2": 1,
            }
        ],...
</code></pre>

<p>becomes this:</p>

<pre><code> ...
"decision": [
            {
                "var1": 43,
                "var2": 1
            },
            {
                "foo1": "true",
                "foo2": "false"
            }
        ],...
</code></pre>

<p>If I can't, is there another simple way to append data into the middle of a JSON object?</p>
