English | 简体中文

api-docs / org.ktorm.jackson

Package org.ktorm.jackson

Jackson extension module for Ktorm, providing JSON serialization for entity objects and JSON SQL type.

Types

NameSummary

JsonSqlType

class JsonSqlType<T : Any> : SqlType<T>

SqlType implementation that provides JSON data type support via Jackson framework.

KtormModule

class KtormModule : Module

Jackson Module implementation that supports serializing Ktorm’s entity objects in JSON format.

Properties

NameSummary

sharedObjectMapper

val sharedObjectMapper: ObjectMapper

A shared ObjectMapper instance which is used as the default mapper of json SQL type.

Functions

NameSummary

json

fun <C : Any> BaseTable<*>.json(
    name: String,
    mapper: ObjectMapper = sharedObjectMapper
): Column<C>

Define a column typed of JsonSqlType.