Accessing values in a PS custom object property generated from JSON
<p>For a JSON like this:</p>

<pre><code>{
"Tours": [{
    "Code": "r",
    "Name": "Tour 1",
    "Tournaments": [{
        "Number": "464",
        "Title": "Open Tournament 1"
    },
    {
        "Number": "047",
        "Title": "Open Tournament 2"
    }]
},
{
    "Code": "s",
    "Name": "Tour 2",
    "Tournaments": [{
        "Number": "524",
        "Title": "Tournament 3"
    },
    {
        "Number": "009",
        "Title": "Tournament 4"
    }]
}]
}
</code></pre>

<p>when converted to a PS custom object and saved in $data variable, I can access values under 'Tournaments' for specific 'Tours' like this:</p>

<pre><code>$data.Tours[0].Tournaments
$data.Tours[1].Tournaments
</code></pre>

<p>But, is it possible to access 'Tournaments' properties and values by specifying 'Code' or 'Name' values under 'Tours'? Something like that, maybe:</p>

<pre><code>$data.Tours.Code['r'].Tournaments
</code></pre>

<p>Actually, in a PS script I want to filter data by 'Code' under 'Tours' and get underlying 'Tournaments' (get 'Tournaments' for specific 'Code' of the 'Tours').</p>