RingDotNetfor Ring

System.Text.Json

15 wrapped types. Load them with using { "System.Text.Json" }. Click a class to open it.

JsonDocument class sealed

System.Text.Json.JsonDocument · assembly System.Text.Json

Implements: IDisposable

Properties and fields

NameTypeAccessIn Ring
RootElementJsonElementreado.RootElement

Methods

MethodRing call.NET overloads
DisposecallMethod("Dispose",[])void Dispose()
ParseParse([ :utf8Json = …, :options = … ])
Parse([ :json = …, :options = … ])
static JsonDocument Parse(ReadOnlyMemory<byte> utf8Json, JsonDocumentOptions options = …)
static JsonDocument Parse(ReadOnlySequence<byte> utf8Json, JsonDocumentOptions options = …)
static JsonDocument Parse(Stream utf8Json, JsonDocumentOptions options = …)
static JsonDocument Parse(ReadOnlyMemory<char> json, JsonDocumentOptions options = …)
static JsonDocument Parse(string json, JsonDocumentOptions options = …)
ParseAsyncParseAsync([ :utf8Json = …, :options = …, :cancellationToken = … ])static Task<JsonDocument> ParseAsync(Stream utf8Json, JsonDocumentOptions options = …, CancellationToken cancellationToken = …)
ParseValueParseValue(p1)static JsonDocument ParseValue(ref Utf8JsonReader reader)
TryParseValueTryParseValue(p1)static bool TryParseValue(ref Utf8JsonReader reader, out JsonDocument document)
WriteToWriteTo(p1)void WriteTo(Utf8JsonWriter writer)
JsonDocumentOptions struct

System.Text.Json.JsonDocumentOptions · assembly System.Text.Json

Properties and fields

NameTypeAccessIn Ring
CommentHandlingJsonCommentHandlingread, writeo.CommentHandling o.CommentHandling = v
MaxDepthintread, writeo.MaxDepth o.MaxDepth = v
AllowTrailingCommasboolread, writeo.AllowTrailingCommas o.AllowTrailingCommas = v
JsonElement struct

System.Text.Json.JsonElement · assembly System.Text.Json

Properties and fields

NameTypeAccessIn Ring
ValueKindJsonValueKindreado.ValueKind

Indexer

o.Item(int index) → JsonElement

Methods

MethodRing call.NET overloads
ClonecallMethod("Clone",[])JsonElement Clone()
DeepEqualsDeepEquals(p1,p2)static bool DeepEquals(JsonElement element1, JsonElement element2)
EnumerateArraycallMethod("EnumerateArray",[])JsonElement.ArrayEnumerator EnumerateArray()
EnumerateObjectcallMethod("EnumerateObject",[])JsonElement.ObjectEnumerator EnumerateObject()
GetArrayLengthcallMethod("GetArrayLength",[])int GetArrayLength()
GetBooleancallMethod("GetBoolean",[])bool GetBoolean()
GetBytecallMethod("GetByte",[])byte GetByte()
GetBytesFromBase64callMethod("GetBytesFromBase64",[])byte[] GetBytesFromBase64()
GetDateTimecallMethod("GetDateTime",[])DateTime GetDateTime()
GetDateTimeOffsetcallMethod("GetDateTimeOffset",[])DateTimeOffset GetDateTimeOffset()
GetDecimalcallMethod("GetDecimal",[])decimal GetDecimal()
GetDoublecallMethod("GetDouble",[])double GetDouble()
GetGuidcallMethod("GetGuid",[])Guid GetGuid()
GetInt16callMethod("GetInt16",[])short GetInt16()
GetInt32callMethod("GetInt32",[])int GetInt32()
GetInt64callMethod("GetInt64",[])long GetInt64()
GetPropertycallMethod("GetProperty",[p1])JsonElement GetProperty(string propertyName)
JsonElement GetProperty(ReadOnlySpan<char> propertyName)
JsonElement GetProperty(ReadOnlySpan<byte> utf8PropertyName)
GetPropertyCountcallMethod("GetPropertyCount",[])int GetPropertyCount()
GetRawTextcallMethod("GetRawText",[])string GetRawText()
GetSBytecallMethod("GetSByte",[])sbyte GetSByte()
GetSinglecallMethod("GetSingle",[])float GetSingle()
GetStringcallMethod("GetString",[])string GetString()
GetUInt16callMethod("GetUInt16",[])ushort GetUInt16()
GetUInt32callMethod("GetUInt32",[])uint GetUInt32()
GetUInt64callMethod("GetUInt64",[])ulong GetUInt64()
ParseValueParseValue(p1)static JsonElement ParseValue(ref Utf8JsonReader reader)
ToStringcallMethod("ToString",[])string ToString()
TryGetByteTryGetByte()bool TryGetByte(out byte value)
TryGetBytesFromBase64TryGetBytesFromBase64()bool TryGetBytesFromBase64(out byte[] value)
TryGetDateTimeTryGetDateTime()bool TryGetDateTime(out DateTime value)
TryGetDateTimeOffsetTryGetDateTimeOffset()bool TryGetDateTimeOffset(out DateTimeOffset value)
TryGetDecimalTryGetDecimal()bool TryGetDecimal(out decimal value)
TryGetDoubleTryGetDouble()bool TryGetDouble(out double value)
TryGetGuidTryGetGuid()bool TryGetGuid(out Guid value)
TryGetInt16TryGetInt16()bool TryGetInt16(out short value)
TryGetInt32TryGetInt32()bool TryGetInt32(out int value)
TryGetInt64TryGetInt64()bool TryGetInt64(out long value)
TryGetPropertyTryGetProperty(p1)bool TryGetProperty(string propertyName, out JsonElement value)
bool TryGetProperty(ReadOnlySpan<char> propertyName, out JsonElement value)
bool TryGetProperty(ReadOnlySpan<byte> utf8PropertyName, out JsonElement value)
TryGetSByteTryGetSByte()bool TryGetSByte(out sbyte value)
TryGetSingleTryGetSingle()bool TryGetSingle(out float value)
TryGetUInt16TryGetUInt16()bool TryGetUInt16(out ushort value)
TryGetUInt32TryGetUInt32()bool TryGetUInt32(out uint value)
TryGetUInt64TryGetUInt64()bool TryGetUInt64(out ulong value)
TryParseValueTryParseValue(p1)static bool TryParseValue(ref Utf8JsonReader reader, out JsonElement? element)
ValueEqualscallMethod("ValueEquals",[p1])bool ValueEquals(string text)
bool ValueEquals(ReadOnlySpan<byte> utf8Text)
bool ValueEquals(ReadOnlySpan<char> text)
WriteToWriteTo(p1)void WriteTo(Utf8JsonWriter writer)
JsonElementArrayEnumerator struct

System.Text.Json.JsonElement+ArrayEnumerator · assembly System.Text.Json

Implements: IEnumerable, IDisposable, IEnumerator

Properties and fields

NameTypeAccessIn Ring
CurrentJsonElementreado.Current

Methods

MethodRing call.NET overloads
DisposecallMethod("Dispose",[])void Dispose()
GetEnumeratorcallMethod("GetEnumerator",[])JsonElement.ArrayEnumerator GetEnumerator()
MoveNextcallMethod("MoveNext",[])bool MoveNext()
ResetcallMethod("Reset",[])void Reset()
JsonElementObjectEnumerator struct

System.Text.Json.JsonElement+ObjectEnumerator · assembly System.Text.Json

Implements: IEnumerable, IDisposable, IEnumerator

Properties and fields

NameTypeAccessIn Ring
CurrentJsonPropertyreado.Current

Methods

MethodRing call.NET overloads
DisposecallMethod("Dispose",[])void Dispose()
GetEnumeratorcallMethod("GetEnumerator",[])JsonElement.ObjectEnumerator GetEnumerator()
MoveNextcallMethod("MoveNext",[])bool MoveNext()
ResetcallMethod("Reset",[])void Reset()
JsonEncodedText struct

System.Text.Json.JsonEncodedText · assembly System.Text.Json

Properties and fields

NameTypeAccessIn Ring
EncodedUtf8BytesReadOnlySpan<byte>reado.EncodedUtf8Bytes
Valuestringreado.Value

Methods

MethodRing call.NET overloads
EncodeEncode([ :value = …, :encoder = … ])
Encode([ :utf8Value = …, :encoder = … ])
static JsonEncodedText Encode(string value, JavaScriptEncoder encoder = …)
static JsonEncodedText Encode(ReadOnlySpan<char> value, JavaScriptEncoder encoder = …)
static JsonEncodedText Encode(ReadOnlySpan<byte> utf8Value, JavaScriptEncoder encoder = …)
EqualsEquals(p1)bool Equals(JsonEncodedText other)
bool Equals(object obj)
GetHashCodecallMethod("GetHashCode",[])int GetHashCode()
ToStringcallMethod("ToString",[])string ToString()
JsonException class · extends Exception

System.Text.Json.JsonException · assembly System.Text.Json

Implements: ISerializable

Constructors

new JsonException(string message, string path, long? lineNumber, long? bytePositionInLine, Exception innerException)
new JsonException(string message, string path, long? lineNumber, long? bytePositionInLine)
new JsonException(string message, Exception innerException)
new JsonException(string message)
new JsonException()

Ring: new JsonException(args) uses one constructor; the others are chosen by the parameter names: new JsonException().@New([ :param = value ]) or dnNew("JsonException",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
LineNumberlong?reado.LineNumber
BytePositionInLinelong?reado.BytePositionInLine
Pathstringreado.Path
Messagestringreado.getMessage()

Methods

MethodRing call.NET overloads
GetObjectDataGetObjectData(p1,p2)void GetObjectData(SerializationInfo info, StreamingContext context)

Members of the base class are inherited.

JsonNamingPolicy class abstract

System.Text.Json.JsonNamingPolicy · assembly System.Text.Json

Properties and fields

NameTypeAccessIn Ring
CamelCaseJsonNamingPolicyread · statico.CamelCase
SnakeCaseLowerJsonNamingPolicyread · statico.SnakeCaseLower
SnakeCaseUpperJsonNamingPolicyread · statico.SnakeCaseUpper
KebabCaseLowerJsonNamingPolicyread · statico.KebabCaseLower
KebabCaseUpperJsonNamingPolicyread · statico.KebabCaseUpper

Methods

MethodRing call.NET overloads
ConvertNamecallMethod("ConvertName",[p1])string ConvertName(string name)
JsonProperty struct

System.Text.Json.JsonProperty · assembly System.Text.Json

Properties and fields

NameTypeAccessIn Ring
ValueJsonElementreado.Value
Namestringreado.Name

Methods

MethodRing call.NET overloads
NameEqualscallMethod("NameEquals",[p1])bool NameEquals(string text)
bool NameEquals(ReadOnlySpan<byte> utf8Text)
bool NameEquals(ReadOnlySpan<char> text)
ToStringcallMethod("ToString",[])string ToString()
WriteToWriteTo(p1)void WriteTo(Utf8JsonWriter writer)
JsonReaderOptions struct

System.Text.Json.JsonReaderOptions · assembly System.Text.Json

Properties and fields

NameTypeAccessIn Ring
CommentHandlingJsonCommentHandlingread, writeo.CommentHandling o.CommentHandling = v
MaxDepthintread, writeo.MaxDepth o.MaxDepth = v
AllowTrailingCommasboolread, writeo.AllowTrailingCommas o.AllowTrailingCommas = v
AllowMultipleValuesboolread, writeo.AllowMultipleValues o.AllowMultipleValues = v
JsonReaderState struct

System.Text.Json.JsonReaderState · assembly System.Text.Json

Constructors

new JsonReaderState(JsonReaderOptions options = …)

Ring: new JsonReaderState(args) uses one constructor; the others are chosen by the parameter names: new JsonReaderState().@New([ :param = value ]) or dnNew("JsonReaderState",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
OptionsJsonReaderOptionsreado.Options
JsonSerializer class static

System.Text.Json.JsonSerializer · assembly System.Text.Json

Properties and fields

NameTypeAccessIn Ring
IsReflectionEnabledByDefaultboolread · statico.IsReflectionEnabledByDefault

Methods

MethodRing call.NET overloads
DeserializeDeserialize([ :document = …, :options = … ])
Deserialize([ :document = …, :jsonTypeInfo = … ])
Deserialize([ :element = …, :options = … ])
Deserialize([ :element = …, :jsonTypeInfo = … ])
static TValue Deserialize<TValue>(JsonDocument document, JsonSerializerOptions options = …)
static object Deserialize(JsonDocument document, Type returnType, JsonSerializerOptions options = …)
static TValue Deserialize<TValue>(JsonDocument document, JsonTypeInfo<TValue> jsonTypeInfo)
static object Deserialize(JsonDocument document, JsonTypeInfo jsonTypeInfo)
static object Deserialize(JsonDocument document, Type returnType, JsonSerializerContext context)
static TValue Deserialize<TValue>(JsonElement element, JsonSerializerOptions options = …)
static object Deserialize(JsonElement element, Type returnType, JsonSerializerOptions options = …)
static TValue Deserialize<TValue>(JsonElement element, JsonTypeInfo<TValue> jsonTypeInfo)
static object Deserialize(JsonElement element, JsonTypeInfo jsonTypeInfo)
static object Deserialize(JsonElement element, Type returnType, JsonSerializerContext context)
static TValue Deserialize<TValue>(JsonNode node, JsonSerializerOptions options = …)
static object Deserialize(JsonNode node, Type returnType, JsonSerializerOptions options = …)
static TValue Deserialize<TValue>(JsonNode node, JsonTypeInfo<TValue> jsonTypeInfo)
static object Deserialize(JsonNode node, JsonTypeInfo jsonTypeInfo)
static object Deserialize(JsonNode node, Type returnType, JsonSerializerContext context)
static TValue Deserialize<TValue>(ReadOnlySpan<byte> utf8Json, JsonSerializerOptions options = …)
static object Deserialize(ReadOnlySpan<byte> utf8Json, Type returnType, JsonSerializerOptions options = …)
static TValue Deserialize<TValue>(ReadOnlySpan<byte> utf8Json, JsonTypeInfo<TValue> jsonTypeInfo)
static object Deserialize(ReadOnlySpan<byte> utf8Json, JsonTypeInfo jsonTypeInfo)
static object Deserialize(ReadOnlySpan<byte> utf8Json, Type returnType, JsonSerializerContext context)
static TValue Deserialize<TValue>(Stream utf8Json, JsonSerializerOptions options = …)
static object Deserialize(Stream utf8Json, Type returnType, JsonSerializerOptions options = …)
static TValue Deserialize<TValue>(Stream utf8Json, JsonTypeInfo<TValue> jsonTypeInfo)
static object Deserialize(Stream utf8Json, JsonTypeInfo jsonTypeInfo)
static object Deserialize(Stream utf8Json, Type returnType, JsonSerializerContext context)
static TValue Deserialize<TValue>(string json, JsonSerializerOptions options = …)
static TValue Deserialize<TValue>(ReadOnlySpan<char> json, JsonSerializerOptions options = …)
static object Deserialize(string json, Type returnType, JsonSerializerOptions options = …)
static object Deserialize(ReadOnlySpan<char> json, Type returnType, JsonSerializerOptions options = …)
static TValue Deserialize<TValue>(string json, JsonTypeInfo<TValue> jsonTypeInfo)
static TValue Deserialize<TValue>(ReadOnlySpan<char> json, JsonTypeInfo<TValue> jsonTypeInfo)
static object Deserialize(string json, JsonTypeInfo jsonTypeInfo)
static object Deserialize(ReadOnlySpan<char> json, JsonTypeInfo jsonTypeInfo)
static object Deserialize(string json, Type returnType, JsonSerializerContext context)
static object Deserialize(ReadOnlySpan<char> json, Type returnType, JsonSerializerContext context)
static TValue Deserialize<TValue>(ref Utf8JsonReader reader, JsonSerializerOptions options = …)
static object Deserialize(ref Utf8JsonReader reader, Type returnType, JsonSerializerOptions options = …)
static TValue Deserialize<TValue>(ref Utf8JsonReader reader, JsonTypeInfo<TValue> jsonTypeInfo)
static object Deserialize(ref Utf8JsonReader reader, JsonTypeInfo jsonTypeInfo)
static object Deserialize(ref Utf8JsonReader reader, Type returnType, JsonSerializerContext context)
DeserializeAsyncDeserializeAsync([ :utf8Json = …, :options = …, :cancellationToken = … ])
DeserializeAsync([ :utf8Json = …, :jsonTypeInfo = …, :cancellationToken = … ])
DeserializeAsync([ :utf8Json = …, :returnType = …, :options = …, :cancellationToken = … ])
DeserializeAsync([ :utf8Json = …, :returnType = …, :context = …, :cancellationToken = … ])
static ValueTask<TValue> DeserializeAsync<TValue>(Stream utf8Json, JsonSerializerOptions options = …, CancellationToken cancellationToken = …)
static ValueTask<object> DeserializeAsync(Stream utf8Json, Type returnType, JsonSerializerOptions options = …, CancellationToken cancellationToken = …)
static ValueTask<TValue> DeserializeAsync<TValue>(Stream utf8Json, JsonTypeInfo<TValue> jsonTypeInfo, CancellationToken cancellationToken = …)
static ValueTask<object> DeserializeAsync(Stream utf8Json, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken = …)
static ValueTask<object> DeserializeAsync(Stream utf8Json, Type returnType, JsonSerializerContext context, CancellationToken cancellationToken = …)
DeserializeAsyncEnumerableDeserializeAsyncEnumerable([ :utf8Json = …, :options = …, :cancellationToken = … ])
DeserializeAsyncEnumerable([ :utf8Json = …, :jsonTypeInfo = …, :cancellationToken = … ])
DeserializeAsyncEnumerable([ :utf8Json = …, :topLevelValues = …, :options = …, :cancellationToken = … ])
DeserializeAsyncEnumerable([ :utf8Json = …, :jsonTypeInfo = …, :topLevelValues = …, :cancellationToken = … ])
static IAsyncEnumerable<TValue> DeserializeAsyncEnumerable<TValue>(Stream utf8Json, JsonSerializerOptions options = …, CancellationToken cancellationToken = …)
static IAsyncEnumerable<TValue> DeserializeAsyncEnumerable<TValue>(Stream utf8Json, bool topLevelValues, JsonSerializerOptions options = …, CancellationToken cancellationToken = …)
static IAsyncEnumerable<TValue> DeserializeAsyncEnumerable<TValue>(Stream utf8Json, JsonTypeInfo<TValue> jsonTypeInfo, CancellationToken cancellationToken = …)
static IAsyncEnumerable<TValue> DeserializeAsyncEnumerable<TValue>(Stream utf8Json, JsonTypeInfo<TValue> jsonTypeInfo, bool topLevelValues, CancellationToken cancellationToken = …)
SerializeSerialize([ :value = …, :options = … ])
Serialize([ :value = …, :jsonTypeInfo = … ])
Serialize([ :utf8Json = …, :value = …, :options = … ])
Serialize([ :utf8Json = …, :value = …, :jsonTypeInfo = … ])
static void Serialize<TValue>(Stream utf8Json, TValue value, JsonSerializerOptions options = …)
static void Serialize(Stream utf8Json, object value, Type inputType, JsonSerializerOptions options = …)
static void Serialize<TValue>(Stream utf8Json, TValue value, JsonTypeInfo<TValue> jsonTypeInfo)
static void Serialize(Stream utf8Json, object value, JsonTypeInfo jsonTypeInfo)
static void Serialize(Stream utf8Json, object value, Type inputType, JsonSerializerContext context)
static string Serialize<TValue>(TValue value, JsonSerializerOptions options = …)
static string Serialize(object value, Type inputType, JsonSerializerOptions options = …)
static string Serialize<TValue>(TValue value, JsonTypeInfo<TValue> jsonTypeInfo)
static string Serialize(object value, JsonTypeInfo jsonTypeInfo)
static string Serialize(object value, Type inputType, JsonSerializerContext context)
static void Serialize<TValue>(Utf8JsonWriter writer, TValue value, JsonSerializerOptions options = …)
static void Serialize(Utf8JsonWriter writer, object value, Type inputType, JsonSerializerOptions options = …)
static void Serialize<TValue>(Utf8JsonWriter writer, TValue value, JsonTypeInfo<TValue> jsonTypeInfo)
static void Serialize(Utf8JsonWriter writer, object value, JsonTypeInfo jsonTypeInfo)
static void Serialize(Utf8JsonWriter writer, object value, Type inputType, JsonSerializerContext context)
SerializeAsyncSerializeAsync([ :utf8Json = …, :value = …, :options = …, :cancellationToken = … ])
SerializeAsync([ :utf8Json = …, :value = …, :jsonTypeInfo = …, :cancellationToken = … ])
SerializeAsync([ :utf8Json = …, :value = …, :inputType = …, :options = …, :cancellationToken = … ])
SerializeAsync([ :utf8Json = …, :value = …, :inputType = …, :context = …, :cancellationToken = … ])
static Task SerializeAsync<TValue>(Stream utf8Json, TValue value, JsonSerializerOptions options = …, CancellationToken cancellationToken = …)
static Task SerializeAsync(Stream utf8Json, object value, Type inputType, JsonSerializerOptions options = …, CancellationToken cancellationToken = …)
static Task SerializeAsync<TValue>(Stream utf8Json, TValue value, JsonTypeInfo<TValue> jsonTypeInfo, CancellationToken cancellationToken = …)
static Task SerializeAsync(Stream utf8Json, object value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken = …)
static Task SerializeAsync(Stream utf8Json, object value, Type inputType, JsonSerializerContext context, CancellationToken cancellationToken = …)
static Task SerializeAsync<TValue>(PipeWriter utf8Json, TValue value, JsonTypeInfo<TValue> jsonTypeInfo, CancellationToken cancellationToken = …)
static Task SerializeAsync<TValue>(PipeWriter utf8Json, TValue value, JsonSerializerOptions options = …, CancellationToken cancellationToken = …)
static Task SerializeAsync(PipeWriter utf8Json, object value, JsonTypeInfo jsonTypeInfo, CancellationToken cancellationToken = …)
static Task SerializeAsync(PipeWriter utf8Json, object value, Type inputType, JsonSerializerContext context, CancellationToken cancellationToken = …)
static Task SerializeAsync(PipeWriter utf8Json, object value, Type inputType, JsonSerializerOptions options = …, CancellationToken cancellationToken = …)
SerializeToDocumentSerializeToDocument([ :value = …, :options = … ])
SerializeToDocument([ :value = …, :jsonTypeInfo = … ])
SerializeToDocument([ :value = …, :inputType = …, :options = … ])
SerializeToDocument([ :value = …, :inputType = …, :context = … ])
static JsonDocument SerializeToDocument<TValue>(TValue value, JsonSerializerOptions options = …)
static JsonDocument SerializeToDocument(object value, Type inputType, JsonSerializerOptions options = …)
static JsonDocument SerializeToDocument<TValue>(TValue value, JsonTypeInfo<TValue> jsonTypeInfo)
static JsonDocument SerializeToDocument(object value, JsonTypeInfo jsonTypeInfo)
static JsonDocument SerializeToDocument(object value, Type inputType, JsonSerializerContext context)
SerializeToElementSerializeToElement([ :value = …, :options = … ])
SerializeToElement([ :value = …, :jsonTypeInfo = … ])
SerializeToElement([ :value = …, :inputType = …, :options = … ])
SerializeToElement([ :value = …, :inputType = …, :context = … ])
static JsonElement SerializeToElement<TValue>(TValue value, JsonSerializerOptions options = …)
static JsonElement SerializeToElement(object value, Type inputType, JsonSerializerOptions options = …)
static JsonElement SerializeToElement<TValue>(TValue value, JsonTypeInfo<TValue> jsonTypeInfo)
static JsonElement SerializeToElement(object value, JsonTypeInfo jsonTypeInfo)
static JsonElement SerializeToElement(object value, Type inputType, JsonSerializerContext context)
SerializeToNodeSerializeToNode([ :value = …, :options = … ])
SerializeToNode([ :value = …, :jsonTypeInfo = … ])
SerializeToNode([ :value = …, :inputType = …, :options = … ])
SerializeToNode([ :value = …, :inputType = …, :context = … ])
static JsonNode SerializeToNode<TValue>(TValue value, JsonSerializerOptions options = …)
static JsonNode SerializeToNode(object value, Type inputType, JsonSerializerOptions options = …)
static JsonNode SerializeToNode<TValue>(TValue value, JsonTypeInfo<TValue> jsonTypeInfo)
static JsonNode SerializeToNode(object value, JsonTypeInfo jsonTypeInfo)
static JsonNode SerializeToNode(object value, Type inputType, JsonSerializerContext context)
SerializeToUtf8BytesSerializeToUtf8Bytes([ :value = …, :options = … ])
SerializeToUtf8Bytes([ :value = …, :jsonTypeInfo = … ])
SerializeToUtf8Bytes([ :value = …, :inputType = …, :options = … ])
SerializeToUtf8Bytes([ :value = …, :inputType = …, :context = … ])
static byte[] SerializeToUtf8Bytes<TValue>(TValue value, JsonSerializerOptions options = …)
static byte[] SerializeToUtf8Bytes(object value, Type inputType, JsonSerializerOptions options = …)
static byte[] SerializeToUtf8Bytes<TValue>(TValue value, JsonTypeInfo<TValue> jsonTypeInfo)
static byte[] SerializeToUtf8Bytes(object value, JsonTypeInfo jsonTypeInfo)
static byte[] SerializeToUtf8Bytes(object value, Type inputType, JsonSerializerContext context)
JsonSerializerOptions class sealed

System.Text.Json.JsonSerializerOptions · assembly System.Text.Json

Constructors

new JsonSerializerOptions()
new JsonSerializerOptions(JsonSerializerOptions options)
new JsonSerializerOptions(JsonSerializerDefaults defaults)

Ring: new JsonSerializerOptions(args) uses one constructor; the others are chosen by the parameter names: new JsonSerializerOptions().@New([ :param = value ]) or dnNew("JsonSerializerOptions",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
ConvertersIList<JsonConverter>reado.Converters
TypeInfoResolverIJsonTypeInfoResolverread, writeo.TypeInfoResolver o.TypeInfoResolver = v
TypeInfoResolverChainIList<IJsonTypeInfoResolver>reado.TypeInfoResolverChain
AllowOutOfOrderMetadataPropertiesboolread, writeo.AllowOutOfOrderMetadataProperties o.AllowOutOfOrderMetadataProperties = v
AllowTrailingCommasboolread, writeo.AllowTrailingCommas o.AllowTrailingCommas = v
DefaultBufferSizeintread, writeo.DefaultBufferSize o.DefaultBufferSize = v
EncoderJavaScriptEncoderread, writeo.Encoder o.Encoder = v
DictionaryKeyPolicyJsonNamingPolicyread, writeo.DictionaryKeyPolicy o.DictionaryKeyPolicy = v
IgnoreNullValuesboolread, writeo.IgnoreNullValues o.IgnoreNullValues = v
DefaultIgnoreConditionJsonIgnoreConditionread, writeo.DefaultIgnoreCondition o.DefaultIgnoreCondition = v
NumberHandlingJsonNumberHandlingread, writeo.NumberHandling o.NumberHandling = v
PreferredObjectCreationHandlingJsonObjectCreationHandlingread, writeo.PreferredObjectCreationHandling o.PreferredObjectCreationHandling = v
IgnoreReadOnlyPropertiesboolread, writeo.IgnoreReadOnlyProperties o.IgnoreReadOnlyProperties = v
IgnoreReadOnlyFieldsboolread, writeo.IgnoreReadOnlyFields o.IgnoreReadOnlyFields = v
IncludeFieldsboolread, writeo.IncludeFields o.IncludeFields = v
MaxDepthintread, writeo.MaxDepth o.MaxDepth = v
PropertyNamingPolicyJsonNamingPolicyread, writeo.PropertyNamingPolicy o.PropertyNamingPolicy = v
PropertyNameCaseInsensitiveboolread, writeo.PropertyNameCaseInsensitive o.PropertyNameCaseInsensitive = v
ReadCommentHandlingJsonCommentHandlingread, writeo.ReadCommentHandling o.ReadCommentHandling = v
UnknownTypeHandlingJsonUnknownTypeHandlingread, writeo.UnknownTypeHandling o.UnknownTypeHandling = v
UnmappedMemberHandlingJsonUnmappedMemberHandlingread, writeo.UnmappedMemberHandling o.UnmappedMemberHandling = v
WriteIndentedboolread, writeo.WriteIndented o.WriteIndented = v
IndentCharactercharread, writeo.IndentCharacter o.IndentCharacter = v
IndentSizeintread, writeo.IndentSize o.IndentSize = v
ReferenceHandlerReferenceHandlerread, writeo.ReferenceHandler o.ReferenceHandler = v
NewLinestringread, writeo.NewLine o.NewLine = v
RespectNullableAnnotationsboolread, writeo.RespectNullableAnnotations o.RespectNullableAnnotations = v
RespectRequiredConstructorParametersboolread, writeo.RespectRequiredConstructorParameters o.RespectRequiredConstructorParameters = v
IsReadOnlyboolreado.IsReadOnly
DefaultJsonSerializerOptionsread · statico.Default
WebJsonSerializerOptionsread · statico.Web

Methods

MethodRing call.NET overloads
AddContextAddContext(NULL)void AddContext<TContext>()
GetConvertercallMethod("GetConverter",[p1])JsonConverter GetConverter(Type typeToConvert)
GetTypeInfocallMethod("GetTypeInfo",[p1])JsonTypeInfo GetTypeInfo(Type type)
MakeReadOnlycallMethod("MakeReadOnly",[])
callMethod("MakeReadOnly",[p1])
void MakeReadOnly()
void MakeReadOnly(bool populateMissingResolver)
TryGetTypeInfoTryGetTypeInfo(p1)bool TryGetTypeInfo(Type type, out JsonTypeInfo typeInfo)
JsonWriterOptions struct

System.Text.Json.JsonWriterOptions · assembly System.Text.Json

Properties and fields

NameTypeAccessIn Ring
EncoderJavaScriptEncoderread, writeo.Encoder o.Encoder = v
Indentedboolread, writeo.Indented o.Indented = v
IndentCharactercharread, writeo.IndentCharacter o.IndentCharacter = v
IndentSizeintread, writeo.IndentSize o.IndentSize = v
MaxDepthintread, writeo.MaxDepth o.MaxDepth = v
SkipValidationboolread, writeo.SkipValidation o.SkipValidation = v
NewLinestringread, writeo.NewLine o.NewLine = v
Utf8JsonWriter class sealed

System.Text.Json.Utf8JsonWriter · assembly System.Text.Json

Implements: IDisposable, IAsyncDisposable

Constructors

new Utf8JsonWriter(IBufferWriter<byte> bufferWriter, JsonWriterOptions options = …)
new Utf8JsonWriter(Stream utf8Json, JsonWriterOptions options = …)

Ring: new Utf8JsonWriter(args) uses one constructor; the others are chosen by the parameter names: new Utf8JsonWriter().@New([ :param = value ]) or dnNew("Utf8JsonWriter",[ :param = value ]).

Properties and fields

NameTypeAccessIn Ring
BytesPendingintreado.BytesPending
BytesCommittedlongreado.BytesCommitted
OptionsJsonWriterOptionsreado.Options
CurrentDepthintreado.CurrentDepth

Methods

MethodRing call.NET overloads
DisposecallMethod("Dispose",[])void Dispose()
DisposeAsynccallMethod("DisposeAsync",[])ValueTask DisposeAsync()
FlushcallMethod("Flush",[])void Flush()
FlushAsyncFlushAsync(value)
FlushAsync([ :cancellationToken = … ])
Task FlushAsync(CancellationToken cancellationToken = …)
ResetcallMethod("Reset",[])
callMethod("Reset",[p1])
void Reset()
void Reset(Stream utf8Json)
void Reset(IBufferWriter<byte> bufferWriter)
WriteBase64StringWriteBase64String(p1,p2)void WriteBase64String(JsonEncodedText propertyName, ReadOnlySpan<byte> bytes)
void WriteBase64String(string propertyName, ReadOnlySpan<byte> bytes)
void WriteBase64String(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> bytes)
void WriteBase64String(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> bytes)
WriteBase64StringValueWriteBase64StringValue(p1)void WriteBase64StringValue(ReadOnlySpan<byte> bytes)
WriteBooleanWriteBoolean(p1,p2)void WriteBoolean(JsonEncodedText propertyName, bool value)
void WriteBoolean(string propertyName, bool value)
void WriteBoolean(ReadOnlySpan<char> propertyName, bool value)
void WriteBoolean(ReadOnlySpan<byte> utf8PropertyName, bool value)
WriteBooleanValuecallMethod("WriteBooleanValue",[p1])void WriteBooleanValue(bool value)
WriteCommentValuecallMethod("WriteCommentValue",[p1])void WriteCommentValue(string value)
void WriteCommentValue(ReadOnlySpan<char> value)
void WriteCommentValue(ReadOnlySpan<byte> utf8Value)
WriteEndArraycallMethod("WriteEndArray",[])void WriteEndArray()
WriteEndObjectcallMethod("WriteEndObject",[])void WriteEndObject()
WriteNullWriteNull(p1)void WriteNull(JsonEncodedText propertyName)
void WriteNull(string propertyName)
void WriteNull(ReadOnlySpan<char> propertyName)
void WriteNull(ReadOnlySpan<byte> utf8PropertyName)
WriteNullValuecallMethod("WriteNullValue",[])void WriteNullValue()
WriteNumberWriteNumber(p1,p2)void WriteNumber(JsonEncodedText propertyName, decimal value)
void WriteNumber(string propertyName, decimal value)
void WriteNumber(ReadOnlySpan<char> propertyName, decimal value)
void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, decimal value)
void WriteNumber(JsonEncodedText propertyName, double value)
void WriteNumber(string propertyName, double value)
void WriteNumber(ReadOnlySpan<char> propertyName, double value)
void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, double value)
void WriteNumber(JsonEncodedText propertyName, float value)
void WriteNumber(string propertyName, float value)
void WriteNumber(ReadOnlySpan<char> propertyName, float value)
void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, float value)
void WriteNumber(JsonEncodedText propertyName, long value)
void WriteNumber(string propertyName, long value)
void WriteNumber(ReadOnlySpan<char> propertyName, long value)
void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, long value)
void WriteNumber(JsonEncodedText propertyName, int value)
void WriteNumber(string propertyName, int value)
void WriteNumber(ReadOnlySpan<char> propertyName, int value)
void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, int value)
void WriteNumber(JsonEncodedText propertyName, ulong value)
void WriteNumber(string propertyName, ulong value)
void WriteNumber(ReadOnlySpan<char> propertyName, ulong value)
void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, ulong value)
void WriteNumber(JsonEncodedText propertyName, uint value)
void WriteNumber(string propertyName, uint value)
void WriteNumber(ReadOnlySpan<char> propertyName, uint value)
void WriteNumber(ReadOnlySpan<byte> utf8PropertyName, uint value)
WriteNumberValueWriteNumberValue(p1)void WriteNumberValue(decimal value)
void WriteNumberValue(double value)
void WriteNumberValue(float value)
void WriteNumberValue(int value)
void WriteNumberValue(long value)
void WriteNumberValue(uint value)
void WriteNumberValue(ulong value)
WritePropertyNameWritePropertyName(p1)void WritePropertyName(JsonEncodedText propertyName)
void WritePropertyName(string propertyName)
void WritePropertyName(ReadOnlySpan<char> propertyName)
void WritePropertyName(ReadOnlySpan<byte> utf8PropertyName)
WriteRawValuecallMethod("WriteRawValue",[p1,p2])void WriteRawValue(string json, bool skipInputValidation = …)
void WriteRawValue(ReadOnlySpan<char> json, bool skipInputValidation = …)
void WriteRawValue(ReadOnlySpan<byte> utf8Json, bool skipInputValidation = …)
void WriteRawValue(ReadOnlySequence<byte> utf8Json, bool skipInputValidation = …)
WriteStartArraycallMethod("WriteStartArray",[])
callMethod("WriteStartArray",[p1])
void WriteStartArray()
void WriteStartArray(JsonEncodedText propertyName)
void WriteStartArray(ReadOnlySpan<byte> utf8PropertyName)
void WriteStartArray(string propertyName)
void WriteStartArray(ReadOnlySpan<char> propertyName)
WriteStartObjectcallMethod("WriteStartObject",[])
callMethod("WriteStartObject",[p1])
void WriteStartObject()
void WriteStartObject(JsonEncodedText propertyName)
void WriteStartObject(ReadOnlySpan<byte> utf8PropertyName)
void WriteStartObject(string propertyName)
void WriteStartObject(ReadOnlySpan<char> propertyName)
WriteStringWriteString(p1,p2)void WriteString(JsonEncodedText propertyName, DateTime value)
void WriteString(string propertyName, DateTime value)
void WriteString(ReadOnlySpan<char> propertyName, DateTime value)
void WriteString(ReadOnlySpan<byte> utf8PropertyName, DateTime value)
void WriteString(JsonEncodedText propertyName, DateTimeOffset value)
void WriteString(string propertyName, DateTimeOffset value)
void WriteString(ReadOnlySpan<char> propertyName, DateTimeOffset value)
void WriteString(ReadOnlySpan<byte> utf8PropertyName, DateTimeOffset value)
void WriteString(JsonEncodedText propertyName, Guid value)
void WriteString(string propertyName, Guid value)
void WriteString(ReadOnlySpan<char> propertyName, Guid value)
void WriteString(ReadOnlySpan<byte> utf8PropertyName, Guid value)
void WriteString(JsonEncodedText propertyName, JsonEncodedText value)
void WriteString(string propertyName, JsonEncodedText value)
void WriteString(string propertyName, string value)
void WriteString(ReadOnlySpan<char> propertyName, ReadOnlySpan<char> value)
void WriteString(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<byte> utf8Value)
void WriteString(JsonEncodedText propertyName, string value)
void WriteString(JsonEncodedText propertyName, ReadOnlySpan<char> value)
void WriteString(string propertyName, ReadOnlySpan<char> value)
void WriteString(ReadOnlySpan<byte> utf8PropertyName, ReadOnlySpan<char> value)
void WriteString(JsonEncodedText propertyName, ReadOnlySpan<byte> utf8Value)
void WriteString(string propertyName, ReadOnlySpan<byte> utf8Value)
void WriteString(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> utf8Value)
void WriteString(ReadOnlySpan<char> propertyName, JsonEncodedText value)
void WriteString(ReadOnlySpan<char> propertyName, string value)
void WriteString(ReadOnlySpan<byte> utf8PropertyName, JsonEncodedText value)
void WriteString(ReadOnlySpan<byte> utf8PropertyName, string value)
WriteStringValueWriteStringValue(p1)void WriteStringValue(DateTime value)
void WriteStringValue(DateTimeOffset value)
void WriteStringValue(Guid value)
void WriteStringValue(JsonEncodedText value)
void WriteStringValue(string value)
void WriteStringValue(ReadOnlySpan<char> value)
void WriteStringValue(ReadOnlySpan<byte> utf8Value)