Sha256: d77561829e4f7a8e8c56bc37264ce452ebaeec3810d5165f6813461a2c22ecdb
Contents?: true
Size: 567 Bytes
Versions: 16
Compression:
Stored size: 567 Bytes
Contents
if (Get-Command ConvertTo-JSON -errorAction SilentlyContinue) { @{ 'PS1_JSON_FACT1' = 'value1' 'ps1_json_fact2' = 2 'ps1_json_fact3' = $True 'ps1_json_fact4' = @('first', 'second') 'ps1_json_fact5' = $Null 'ps1_json_fact6' = @{ 'a' = 'b'; 'c' = 'd' } } | ConvertTo-JSON -Depth 1 -Compress } else { @' { "PS1_JSON_FACT1": "value1", "ps1_json_fact2": 2, "ps1_json_fact3": true, "ps1_json_fact4": ["first", "second"], "ps1_json_fact5": null, "ps1_json_fact6": { "a": "b", "c": "d" } } '@ }
Version data entries
16 entries across 16 versions & 2 rubygems