Class JsonValueConverter

Assembly: redb.Core.dll

Unified converter JsonElement → CLR types for EAV
Supports all types: string, numeric, bool, DateTime, Guid

public static class JsonValueConverter

Inheritance

ObjectJsonValueConverter

Methods

Convert(JsonElement, Type)

Converts JsonElement to specified CLR type

public static object? Convert(JsonElement elem, Type targetType)

Convert<T>(JsonElement)

Typed version

public static T? Convert<T>(JsonElement elem)

GetDefault(Type)

Get default value for type

public static object? GetDefault(Type type)