json_serializer library

This library provides JSON serialization and deserialization functionality.

Classes

EnumType<T extends Enum>
Represents an enumeration type.
JsonConverter<T>
The base class for all JSON converters. A JSON converter is responsible for converting a specific data type to and from JSON.
JsonSerializer
A class that provides JSON serialization and deserialization functionality.
JsonSerializerOptions
Options for the JSON serializer.
Serializable
An abstract class that represents a serializable object.
UserType<T>
Represents a user-defined type.

Functions

deserialize<T>(String json, [JsonSerializerOptions? options]) → T
Deserializes the given json string to an object of type T.
serialize(Object? object, [JsonSerializerOptions? options]) String
Serializes the given object to a JSON string.

Exceptions / Errors

JsonSerializerException
Exception thrown when there is an error during JSON serialization.