How to return array in a variable with multiple object layer : <p>I haw the two following variables: </p>

<pre><code>'ecommerce': { 'checkout': { 'actionField': {'step': 4}, 'products': [{
'name': 'Spirit Pack', 'id': '12345', 'price': '55', }] } }


'ecommerce': { 'purchase': { 'actionField': {'step': 4}, 'products': [{
'name': 'Spirit Pack', 'id': '12345', 'price': '55', }] } }
</code></pre>

<p>How can I return the array named <code>products</code> when the second level of layer object is different. </p>
