Public/ConvertFrom-NTFlatJSON.ps1
function ConvertFrom-NTFlatJSON { [CmdletBinding()] [OutputType([object])] param ( [Parameter(Mandatory = $true, ValueFromPipeline = $true, HelpMessage = 'The Tag where the value is JSON')] [ValidateNotNullOrEmpty()] [System.String]$JSONTag ) Process { try { $JSONTag | ConvertFrom-Json } Catch { Write-Error "Unable to convert Tag Input to Object from JSON. Error: $($_.Exception.Message)" } } } |