Table of Contents

Class Serializer

Namespace
Refitter.Core
Assembly
Refitter.Core.dll

Provides methods for serializing and deserializing objects to and from JSON. This serializer is configured to be case-insensitive.

public static class Serializer
Inheritance
Serializer
Inherited Members

Methods

Deserialize<T>(string, JsonSerializerOptions?)

Deserializes the JSON string to the specified type.

public static T Deserialize<T>(string json, JsonSerializerOptions? options = null)

Parameters

json string

The JSON string to deserialize.

options JsonSerializerOptions

Optional custom serialization options

Returns

T

The deserialized object of type T.

Type Parameters

T

The type to deserialize the JSON string to.

Serialize(object, JsonSerializerOptions?)

Serializes the specified object to a JSON string.

public static string Serialize(object any, JsonSerializerOptions? options = null)

Parameters

any object

The object to serialize.

options JsonSerializerOptions

Optional custom serialization options

Returns

string

The JSON string representation of the object.