Table of Contents

Class CoreJson

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

A static helper class that serializes and deserializes JSON with the Artemis Core JSON settings

public static class CoreJson
Inheritance
object
CoreJson

Methods

Deserialize<T>(string)

Deserializes the JSON to the specified .NET type.

public static T Deserialize<T>(string value)

Parameters

value string

The JSON to deserialize.

Returns

T

The deserialized object from the JSON string.

Type Parameters

T

The type of the object to deserialize to.

GetJsonSerializerOptions()

Gets a copy of the JSON serializer options used by Artemis Core

public static JsonSerializerOptions GetJsonSerializerOptions()

Returns

JsonSerializerOptions

A copy of the JSON serializer options used by Artemis Core

Serialize(object?)

Serializes the specified object to a JSON string.

public static string Serialize(object? value)

Parameters

value object

The object to serialize.

Returns

string

A JSON string representation of the object.