Convert HashtableToString - PPOSHGROUP/PPoShTools GitHub Wiki
PPoShTools -> Convert-HashtableToString.ps1
Converts hashtable or any other dictionary to a serializable string. It also supports nested hashtables.
Convert-HashtableToString [-Hashtable] <IDictionary> [<CommonParameters>]
Hashtable to convert.
- PipelineInput: true (ByValue)
- Required: true
Convert-HashtableToString -Hashtable @{'key' = 'value'; 'keyNested' = @{'a' = 'b'}}
@{'key'='value'; 'keyNested'=@{'a'='b'; }; }