codecs.DefaultJSONCodecs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluid-json-coding Show documentation
Show all versions of fluid-json-coding Show documentation
A JSON library written in pure Kotlin (coding extension)
package com.github.fluidsonic.fluid.json
import com.github.fluidsonic.fluid.json.dynamic.*
object DefaultJSONCodecs {
val basic: List> =
listOf(
AnyJSONDecoderCodec,
ArrayJSONCodec,
BooleanArrayJSONCodec,
BooleanJSONCodec,
ByteArrayJSONCodec,
ByteJSONCodec,
CharJSONCodec,
DoubleArrayJSONCodec,
DoubleJSONCodec,
FloatArrayJSONCodec,
FloatJSONCodec,
IntArrayJSONCodec,
IntJSONCodec,
ListJSONDecoderCodec,
LongArrayJSONCodec,
LongJSONCodec,
MapJSONCodec,
SequenceJSONCodec,
SetJSONDecoderCodec,
ShortArrayJSONCodec,
ShortJSONCodec,
StringJSONCodec,
CollectionJSONCodec, // after subclasses
IterableJSONEncoderCodec, // after subclasses
NumberJSONCodec // after subclasses
)
val extended: List> =
codingImplementationsJava.extendedCodecProviders()
val nonRecursive: List> =
listOf(
ArrayJSONCodec.nonRecursive,
ListJSONDecoderCodec.nonRecursive,
MapJSONCodec.nonRecursive,
SequenceJSONCodec.nonRecursive,
SetJSONDecoderCodec.nonRecursive,
CollectionJSONCodec.nonRecursive, // after subclasses
IterableJSONEncoderCodec.nonRecursive // after subclasses
)
}