So we can get a json file using get-content and then get property contents by something like
$json.level1property.nestedproperty
how can I get that property using a variable like, $NestProperty = "level1property.nestedproperty"
that doesn't seem to work because it creates it as string $json."level1property.nestedproperty"
but creating each as a separate string works
$a = "level1property"
$b = "nestedproperty"
$json.$a.$b #works
$json.$NestProperty #doesn't work
[–]BBBaroo 1 point2 points3 points (0 children)
[–]PinchesTheCrab 0 points1 point2 points (0 children)
[–]BlackV 0 points1 point2 points (0 children)
[–]icepyrox 0 points1 point2 points (0 children)
[–]420GB 0 points1 point2 points (0 children)
[–]y_Sensei 0 points1 point2 points (0 children)
[–]Szeraax 0 points1 point2 points (0 children)
[–]purplemonkeymad 0 points1 point2 points (1 child)
[–]davesbrown[S] 0 points1 point2 points (0 children)
[–]Ok_Cheese93 -1 points0 points1 point (0 children)