Jq – Work with JSON on the command line
I'm sure someone's going to throw a shoe at me for this, but...this sort of thing is why you want an object-oriented shell.<p>PS C:\> $x = ConvertFrom-Json -InputObject '[{"banana" : {"stem" : "brown", "peel" : "yellow", "flesh" : "white"}}]'<p>PS C:\> $x.banana.peel<p>yellow