fun serialize(value: Any?, tabulation: Tabulation = Tabulation.None): String
value - will be converted to its String JSON representation.
tabulation - will add tabulation according to standard predefined templates.
NonCompliantStringException - .
NonCompliantNumberException - .
MapTransformationException - .
IterableTransformationException - .
ArrayTransformationException - .
Since
2.0
Return
a String with the serialized JSON representation of value.