jsonkraken / net.jemzart.jsonkraken / JsonKraken / serialize

serialize

fun serialize(value: Any?, tabulation: Tabulation = Tabulation.None): String

Parameters

value - will be converted to its String JSON representation.

tabulation - will add tabulation according to standard predefined templates.

Exceptions

NonCompliantStringException - .

NonCompliantNumberException - .

MapTransformationException - .

IterableTransformationException - .

ArrayTransformationException - .

Since
2.0

Return
a String with the serialized JSON representation of value.