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.PS C:\> $x = ConvertFrom-Json -InputObject '[{"banana" : {"stem" : "brown", "peel" : "yellow", "flesh" : "white"}}]'PS C:\> $x.banana.peelyellow