Table of Contents

Class TextJsonableExtensions

Namespace
H.Extensions.TextJsonable
Assembly
H.Extensions.TextJsonable.dll
public static class TextJsonableExtensions
Inheritance
TextJsonableExtensions
Inherited Members

Methods

GetJsonPropertyInfos(object)

public static IEnumerable<PropertyInfo> GetJsonPropertyInfos(this object value)

Parameters

value object

Returns

IEnumerable<PropertyInfo>

ReadJson(ITextJsonable, ref Utf8JsonReader, JsonSerializerOptions)

public static ITextJsonable ReadJson(this ITextJsonable jsonable, ref Utf8JsonReader reader, JsonSerializerOptions options)

Parameters

jsonable ITextJsonable
reader Utf8JsonReader
options JsonSerializerOptions

Returns

ITextJsonable

WriteJson(ITextJsonable, Utf8JsonWriter, JsonSerializerOptions)

public static void WriteJson(this ITextJsonable jsonable, Utf8JsonWriter writer, JsonSerializerOptions options)

Parameters

jsonable ITextJsonable
writer Utf8JsonWriter
options JsonSerializerOptions

WriteJson(object, Utf8JsonWriter, JsonSerializerOptions, bool)

public static void WriteJson(this object data, Utf8JsonWriter writer, JsonSerializerOptions options, bool useType = false)

Parameters

data object
writer Utf8JsonWriter
options JsonSerializerOptions
useType bool

WriteType(object, Utf8JsonWriter)

public static void WriteType(this object data, Utf8JsonWriter writer)

Parameters

data object
writer Utf8JsonWriter