Updates from: 06/20/2021 03:04:36
Service Microsoft Docs article Related commit history on GitHub Change details
Microsoft.PowerShell.Utility Convertto Json (7.0) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.0/Microsoft.PowerShell.Utility/ConvertTo-Json.md
Specifies the objects to convert to JSON format. Enter a variable that contains
a command or expression that gets the objects. You can also pipe an object to `ConvertTo-Json`. The **InputObject** parameter is required, but its value can be null (`$null`) or an empty string.
-When the input object is `$null` or an empty string, `ConvertTo-Json` outputs the string `null`.
+When the input object is `$null`, `ConvertTo-Json` returns the JSON representation of `null`. When
+the input object is an empty string, `ConvertTo-Json` returns the JSON representation of an empty
+string.
```yaml Type: System.Object
Microsoft.PowerShell.Utility Convertto Json (7.1) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.1/Microsoft.PowerShell.Utility/ConvertTo-Json.md
Specifies the objects to convert to JSON format. Enter a variable that contains
a command or expression that gets the objects. You can also pipe an object to `ConvertTo-Json`. The **InputObject** parameter is required, but its value can be null (`$null`) or an empty string.
-When the input object is `$null` or an empty string, `ConvertTo-Json` outputs the string `null`.
+When the input object is `$null`, `ConvertTo-Json` returns the JSON representation of `null`. When
+the input object is an empty string, `ConvertTo-Json` returns the JSON representation of an empty
+string.
```yaml Type: System.Object
Microsoft.PowerShell.Utility Convertto Json (7.2) https://github.com/MicrosoftDocs/PowerShell-Docs/commits/staging/reference/7.2/Microsoft.PowerShell.Utility/ConvertTo-Json.md
Specifies the objects to convert to JSON format. Enter a variable that contains
a command or expression that gets the objects. You can also pipe an object to `ConvertTo-Json`. The **InputObject** parameter is required, but its value can be null (`$null`) or an empty string.
-When the input object is `$null` or an empty string, `ConvertTo-Json` outputs the string `null`.
+When the input object is `$null`, `ConvertTo-Json` returns the JSON representation of `null`. When
+the input object is an empty string, `ConvertTo-Json` returns the JSON representation of an empty
+string.
```yaml Type: System.Object