jsonkraken / net.jemzart.jsonkraken / JsonKraken / transform

transform

inline fun <reified T : JsonValue> transform(value: Any?): T

Parameters

value - will be converted to T representation.

T - is the expected representation of value .

Exceptions

UnexpectedJsonValueException - .

NonCompliantStringException - .

NonCompliantNumberException - .

MapTransformationException - .

IterableTransformationException - .

ArrayTransformationException - .

Since
2.0

Return
a T representation of value.