com.hexagonkt.serialization.jackson.toml.Toml.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serialization_jackson_toml Show documentation
Show all versions of serialization_jackson_toml Show documentation
Hexagon TOML serialization format (using Jackson).
The newest version!
package com.hexagonkt.serialization.jackson.toml
import com.fasterxml.jackson.core.JsonFactory
import com.fasterxml.jackson.dataformat.toml.TomlFactory
import com.hexagonkt.core.media.APPLICATION_TOML
import com.hexagonkt.core.media.MediaType
import com.hexagonkt.serialization.jackson.JacksonTextFormat
object Toml : JacksonTextFormat({ Toml.createTomlFactory() }) {
private fun createTomlFactory(): JsonFactory =
TomlFactory()
override val mediaType: MediaType = APPLICATION_TOML
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy