JsonSchemaSerialization
The JSON Schema serialization context holding information about the current serialization.
Gets or sets the current schema type.
Gets the current serializer settings.
Gets or sets a value indicating whether the object is currently converted to JSON.
public JsonSchemaSerialization()
Deserializes JSON data with the given contract resolver.
Deserializes JSON data with the given contract resolver.
public static Task<T> FromJsonAsync<T>(string json, SchemaType schemaType, string documentPath, Func<T, JsonReferenceResolver> referenceResolverFactory, IContractResolver contractResolver)
Deserializes JSON data to a schema with reference handling.
public static Task<T> FromJsonAsync<T>(string json, SchemaType schemaType, string documentPath, Func<T, JsonReferenceResolver> referenceResolverFactory, IContractResolver contractResolver, CancellationToken cancellationToken = default)
Deserializes JSON data to a schema with reference handling.
public static Task<T> FromJsonAsync<T>(Stream stream, SchemaType schemaType, string documentPath, Func<T, JsonReferenceResolver> referenceResolverFactory, IContractResolver contractResolver, CancellationToken cancellationToken = default)
Deserializes JSON data to a schema with reference handling.
public static string ToJson(object obj, SchemaType schemaType, IContractResolver contractResolver, Formatting formatting)
Serializes an object to a JSON string with reference handling.