Created
March 13, 2019 01:26
-
-
Save levi-turner/5ce59c163ceb774a4bd47609bc680ac5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -Recurse -Filter *.json | | |
ForEach-Object { | |
Write-Host $_.Name | |
Write-Host $_.FullName | |
$jsondata = Get-Content -Raw -Path $_.FullName | ConvertFrom-Json | |
$jsondata.scenario | Where{$_.Label -eq 'SELECT in Benchmark'} | ForEach{$_.Type = 'SelectString'} | |
$jsondata.scenario | Where{$_.Label -eq 'SELECT in Benchmark'} | ForEach{$_.StringSelection = 'Under 65 Population'} | |
$jsondata | ConvertTo-Json -depth 100 | Out-File -LiteralPath $_.FullName | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment