Como atualizo o arquivo JSON usando o PowerShell
Eu tenho um arquivo jsonmytest.json
como abaixo, eu quero atualizar valores usandoPowerShell script
update.json
{
"update": [
{
"Name": "test1",
"Version": "2.1"
},
{
"Name": "test2",
"Version": "2.1"
}
]
}
Quero escrever um script do PowerShell em queif Name=="test1" I want to update Version= "3"
Como posso fazer isso usando parâmetros?