GsonSerializer

class GsonSerializer(block: GsonBuilder.() -> Unit) : JsonSerializer

JsonSerializer using Gson as backend.

Constructors

Link copied to clipboard
fun GsonSerializer(block: GsonBuilder.() -> Unit = {})

Functions

Link copied to clipboard
open override fun read(type: TypeInfo, body: Input): Any
Link copied to clipboard
open fun write(data: Any): OutgoingContent
open override fun write(data: Any, contentType: ContentType): OutgoingContent