Created
May 5, 2019 04:12
-
-
Save chriskuech/f5cb0f31e0bcd4f55124e20b7fbe46f3 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
$nodePropertyNames = "Tier1", "Tier2", "Tier2", "LeafName" | |
$container = "./container" | |
$treePath = ($nodePropertyNames | % {$obj.$_}) -join "/" | |
$fsPath = "$container/$treePath.json" | |
# Store | |
New-Item $fsPath -Force | |
$obj | ConvertTo-Json | Out-File $fsPath | |
# Retrieve | |
$obj = Get-Item $fsPath | ConvertFrom-Json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment