Cmdlet Gets the target cmdlet that is doing the convert-to-json operation. CompressOutput Gets the CompressOutput setting. EnumsAsStrings Gets the EnumsAsStrings setting. MaxDepth Gets the maximum depth for walking the object graph. StringEscapeHandling Gets the StringEscapeHandling setting.Applies...
container JsonObject The JsonObject container to serialize this object into. If the caller passes in null, a new instance will be created and returned to the caller. serializationMode SerializationMode Allows the caller to choose the depth of the serialization. See Serialization...
Runtime.Json Assembly: Az.ConnectedMachine.private.dll C# Kopēt public Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.Json.JsonNode ToJson(object value); Parameters value Object Returns JsonNode Applies to ProduktsVersijas Azure - PowerShell Commands 12 (LTS...
JsonObject.ConvertToJsonContext Constructors Reference Feedback Definition Namespace: Microsoft.PowerShell.Commands Assembly: Microsoft.PowerShell.Commands.Utility.dll Package: Microsoft.PowerShell.Commands.Utility v7.4.0 Overloads तालिका विस्तृत करें ...
对于 JavaScript 对象表示法 (JSON) 或 XML,PowerShell 将内容转换或反序列化为 [pscustomobject] 对象。 JSON 数据中允许注释。 备注 当REST 终结点返回多个对象时,对象将作为数组接收。 如果将来自 Invoke-RestMethod 的输出通过管道传递给另一个命令,则会将其作为单个 [Object[]] 对象发送。 该数组的内容不...
JSON 标准允许重复键名称,但在PSObject和哈希表类型中是禁止的。 例如,如果 JSON 字符串包含重复键,则此 cmdlet 仅使用最后一个键。 请参阅以下示例。 若要从任何对象生成 JSON 字符串,请使用ConvertTo-Jsoncmdlet。 PowerShell 3.0 中引入了此 cmdlet。
ConvertTo-Json Reference Feedback Module: Microsoft.PowerShell.Utility Converts an object to a JSON-formatted string. Syntax PowerShellCopy ConvertTo-Json[-InputObject] <Object> [-Depth <Int32>] [-Compress] [-EnumsAsStrings] [-AsArray] [-EscapeHandling <StringEscapeHandling>] [<CommonParamet...
JSON 标准允许重复键名称,但在PSObject和哈希表类型中是禁止的。 例如,如果 JSON 字符串包含重复键,则此 cmdlet 仅使用最后一个键。 请参阅以下示例。 若要从任何对象生成 JSON 字符串,请使用ConvertTo-Jsoncmdlet。 PowerShell 3.0 中引入了此 cmdlet。
Cmdlets.Confluent.Runtime.Json Assembly: Az.Confluent.private.dll C# Copiar public Microsoft.Azure.PowerShell.Cmdlets.Confluent.Runtime.Json.JsonNode ToJson(object value); Parameters value Object Returns JsonNode Applies to ProdutoVersões Azure - PowerShell Commands 12 (LTS),...
JsonObject.ConvertToJsonContext(Int32, Boolean, Boolean) Initializes a new instance of the JsonObject.ConvertToJsonContext struct. JsonObject.ConvertToJsonContext(Int32, Boolean, Boolean, StringEscapeHandling, PSCmdlet, CancellationToken) Initializes a new instance of the JsonObject.ConvertToJson...