0
我知道使用powershell 3.0这非常容易。唉,我现在正在使用v2。使用powershell 2.0获取json值
所以,说我有一个看起来像这样的JSON文件(config.json):
{
"environment": "dev",
"SomeKey": "SomethingElse",
"AnotherKey": "More Here",
"stuff": {
"More": "Stuff Here"
},
// More stuff here
}
有没有一种方法,我可以得到 “AnotherKey” 的值使用PowerShell(V2.0) ?
更新:
这可能是安全地说,在这种情况下,"AnotherKey":
将不会出现在文件的其他地方英寸
您可能想要检查这里的答案http://stackoverflow.com/questions/28077854/powershell-2-0-convertfrom-json-and-convertto-json-implementation –