JsonObject.ConvertToJsonContext(Int32, Boolean, Boolean) Initializes a new instance of the JsonObject.ConvertToJsonContext struct. C# Kopiraj public ConvertToJsonContext (int maxDepth, bool enumsAsStrings, bool compressOutput); Parameters maxDepth Int32 The maximum depth to visit the objec...
Context for convert-to-json operation.C# კოპირება [System.Runtime.CompilerServices.IsReadOnly] public readonly struct JsonObject.ConvertToJsonContextInheritance ValueType JsonObject.ConvertToJsonContext Attributes IsReadOnlyAttribute ...
JsonObject.ConvertToJsonContext Constructors Fields Language MatchInfo MatchInfoContext MeasureCommandCommand MeasureInfo MeasureObjectCommand MemberDefinition ModuleCmdletBase ModuleCmdletBase.ImportModuleOptions ModuleSpecification MoveItemCommand MoveItemPropertyCommand ...
ToJson(JsonObject, SerializationMode) Method Reference Feedback Definition Namespace: Microsoft.Azure.PowerShell.Cmdlets.BillingBenefits.Models.Api30 Assembly: Az.BillingBenefits.private.dll Serializes this instance of Operation into a JsonNode. C# 复制 public Microsoft.Azure.PowerShell...
ConvertTo-Json[-InputObject] <Object> [-Depth <Int32>] [-Compress] [-EnumsAsStrings] [-AsArray] [-EscapeHandling <StringEscapeHandling>] [<CommonParameters>] 说明 ConvertTo-Jsoncmdlet 将任何 .NET 对象转换为 JavaScript 对象表示法 (JSON) 格式的字符串。 这些属性将转换为字段名称,字段值将转换...
对于 JavaScript 对象表示法 (JSON) 或 XML,PowerShell 将内容转换或反序列化为 [pscustomobject] 对象。 JSON 数据中允许注释。 备注 当REST 终结点返回多个对象时,对象将作为数组接收。 如果将来自 Invoke-RestMethod 的输出通过管道传递给另一个命令,则会将其作为单个 [Object[]] 对象发送。 该数组的内容不...
JSON 标准允许重复键名称,但在PSObject和哈希表类型中是禁止的。 例如,如果 JSON 字符串包含重复键,则此 cmdlet 仅使用最后一个键。 请参阅以下示例。 若要从任何对象生成 JSON 字符串,请使用ConvertTo-Jsoncmdlet。 PowerShell 3.0 中引入了此 cmdlet。
Compare-Object ConvertFrom-CliXml ConvertFrom-Csv ConvertFrom-Json ConvertFrom-Markdown ConvertFrom-SddlString ConvertFrom-StringData ConvertTo-CliXml ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-Xml Debug-Runspace Disable-PSBreakpoint Disable-RunspaceDebug Enable-PSBreakpoint Enable-RunspaceDebug Expor...
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.ConvertTo...
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.Appli...