Skip to content

Instantly share code, notes, and snippets.

@codecontemplator
Last active June 8, 2017 19:13
Show Gist options
  • Save codecontemplator/fb8f4e2764df0c9b3be4fe5a02992cc5 to your computer and use it in GitHub Desktop.
Save codecontemplator/fb8f4e2764df0c9b3be4fe5a02992cc5 to your computer and use it in GitHub Desktop.
[string]$doc = @"
{
"parameters" : {
"valuename": {
"value": "123"
}
}
}
"@
#$json = $doc | ConvertFrom-Json
[Reflection.Assembly]::LoadFile("C:\Development\Newtonsoft.Json.dll") | Out-Null
$json = [Newtonsoft.Json.Linq.JToken]::Parse($doc)
$json.parameters | % {
[string]$value = $_.value.value
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment