Show / Hide Table of Contents

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 Source

FromJson(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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX