I know this is super easy using powershell 3.0. Alas I am using v2 for now.
So, say I have a json file (config.json) that looks like this:
{
"environment": "dev",
"SomeKey": "SomethingElse",
"AnotherKey": "More Here",
"stuff": {
"More": "Stuff Here"
},
// More stuff here
}
Is there a way I can get the value of "AnotherKey" using powershell (v2.0)?
Update:
It is probably safe to say that in this case, "AnotherKey":
will not appear in the file anywhere else.