JsonBColumnType

constructor(serialize: (T) -> String, deserialize: (String) -> T, castToJsonFormat: Boolean = false)

Parameters

serialize

Function that encodes an object of type T to a JSON String

deserialize

Function that decodes a JSON String to an object of type T

castToJsonFormat

Whether reads from this column should cast retrieved data to a non-binary format. This value only applies to SQLite databases & will be ignored for all others.