Interface IJsonSerializable
Provides implementers the option to set a preferred method for serialization.
Namespace: Manatee.Json.Serialization
Assembly: Manatee.Json.dll
Syntax
public interface IJsonSerializable
Methods
| Improve this Doc View SourceFromJson(JsonValue, JsonSerializer)
Builds an object from a JsonValue.
Declaration
void FromJson(JsonValue json, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonValue | json | The JsonValue representation of the object. |
JsonSerializer | serializer | The JsonSerializer instance to use for additional serialization of values. |
ToJson(JsonSerializer)
Converts an object to a JsonValue.
Declaration
JsonValue ToJson(JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonSerializer | serializer | The JsonSerializer instance to use for additional serialization of values. |
Returns
Type | Description |
---|---|
JsonValue | The JsonValue representation of the object. |