Class JsonSchemaConverter
Inherited Members
JsonConverter.CanRead
JsonConverter.CanWrite
Namespace: Glitch9.IO.Json.Schema
Assembly: Glitch9.IO.dll
Syntax
public sealed class JsonSchemaConverter : JsonConverter<JsonSchema>
Constructors
| Edit this page View SourceJsonSchemaConverter(TextCase, bool)
Declaration
public JsonSchemaConverter(TextCase typeStringCase, bool includeExtras = true)
Parameters
| Type | Name | Description |
|---|---|---|
| TextCase | typeStringCase | |
| bool | includeExtras |
Fields
| Edit this page View SourceincludeExtras
Declaration
public readonly bool includeExtras
Field Value
| Type | Description |
|---|---|
| bool |
typeStringCase
Declaration
public readonly TextCase typeStringCase
Field Value
| Type | Description |
|---|---|
| TextCase |
Methods
| Edit this page View SourceReadJson(JsonReader, Type, JsonSchema, bool, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override JsonSchema ReadJson(JsonReader reader, Type objectType, JsonSchema existingValue, bool hasExistingValue, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonReader | reader | The Newtonsoft.Json.JsonReader to read from. |
| Type | objectType | Type of the object. |
| JsonSchema | existingValue | The existing value of object being read. If there is no existing value then |
| bool | hasExistingValue | The existing value has a value. |
| JsonSerializer | serializer | The calling serializer. |
Returns
| Type | Description |
|---|---|
| JsonSchema | The object value. |
Overrides
| Edit this page View SourceWriteJson(JsonWriter, JsonSchema, JsonSerializer)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, JsonSchema value, JsonSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonWriter | writer | The Newtonsoft.Json.JsonWriter to write to. |
| JsonSchema | value | The value. |
| JsonSerializer | serializer | The calling serializer. |