Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Can’t figure out why ConvertFrom-Json does not have a -depth parameter on any of my machines.

$
0
0

I am trying to use the -depth parameter, but none of my machines have this. ref: https://msdn.microsoft.com/powershell/reference/5.1/microsoft.powershell.utility/ConvertTo-Json

Edit: Snapshot of get-help NAME ConvertFrom-Json

SYNOPSIS Converts a JSON-formatted string to a custom object.

SYNTAX ConvertFrom-Json [-InputObject] <String> [<CommonParameters>]

DESCRIPTION The ConvertFrom-Json cmdlet converts a JSON-formatted string to a custom object (PSCustomObject) that has a property for each field in the JSON string. JSON is commonly used by web sites to provide a textual representation of objects. To generate a JSON string from any object, use the ConvertTo-Json cmdlet. This cmdlet is introduced in Windows PowerShell 3.0.

submitted by /u/axk3494
[link] [comments]

The post Can’t figure out why ConvertFrom-Json does not have a -depth parameter on any of my machines. appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Latest Images

Trending Articles



Latest Images