ConvertTo-NestedJson
SYNOPSIS​
Convert object to JSON
SYNTAX​
ConvertTo-NestedJson
[-InputObject] <Object>
[-Depth <Int32>]
[-Compress]
[<CommonParameters>]
DESCRIPTION​
Convert object to JSON but increase the default depth used by ConvertTo-Json
EXAMPLES​
EXAMPLE 1​
@{example = "one"} | ConvertTo-NestedJson
Convert object to JSON
PARAMETERS​
-InputObject​
Input object
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Depth​
Max depth
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 20
Accept pipeline input: False
Accept wildcard characters: False
-Compress​
Compress
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters​
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.