Skip to content

Commit 6344d1d

Browse files
TylerLeonhardtsdwheeler
authored andcommitted
Add docs for Depth on ConvertFrom-Json (#4037)
* Add docs for Depth on ConvertFrom-Json * update date
1 parent 0131e4f commit 6344d1d

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

reference/6/Microsoft.PowerShell.Utility/ConvertFrom-Json.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,22 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
keywords: powershell,cmdlet
44
locale: en-us
55
Module Name: Microsoft.PowerShell.Utility
6-
ms.date: 01/14/2019
6+
ms.date: 03/22/2019
77
online version: http://go.microsoft.com/fwlink/?LinkId=821753
88
schema: 2.0.0
99
title: ConvertFrom-Json
1010
---
11+
1112
# ConvertFrom-Json
1213

1314
## SYNOPSIS
15+
1416
Converts a JSON-formatted string to a custom object or a hash table.
1517

1618
## SYNTAX
1719

1820
```
19-
ConvertFrom-Json [-InputObject] <String> [-AsHashtable] [<CommonParameters>]
21+
ConvertFrom-Json [-InputObject] <String> [-AsHashtable] [-Depth <Int32>] [<CommonParameters>]
2022
```
2123

2224
## DESCRIPTION
@@ -129,6 +131,23 @@ Accept pipeline input: False
129131
Accept wildcard characters: False
130132
```
131133
134+
### -Depth
135+
136+
Gets or sets the maximum depth the JSON input is allowed to have.
137+
By default, it is 1024.
138+
139+
```yaml
140+
Type: Int32
141+
Parameter Sets: (All)
142+
Aliases:
143+
144+
Required: False
145+
Position: Named
146+
Default value: None
147+
Accept pipeline input: False
148+
Accept wildcard characters: False
149+
```
150+
132151
### -InputObject
133152
134153
Specifies the JSON strings to convert to JSON objects. Enter a variable that contains the string,
@@ -182,4 +201,4 @@ The `ConvertFrom-Json` cmdlet is implemented using [Newtonsoft Json.NET](https:/
182201

183202
[Invoke-WebRequest](Invoke-WebRequest.md)
184203

185-
[Invoke-RestMethod](Invoke-RestMethod.md)
204+
[Invoke-RestMethod](Invoke-RestMethod.md)

0 commit comments

Comments
 (0)