fun <T> fromJson(deserializer: DeserializationStrategy<T>, json: JsonElement): T
Deserializes json element into a corresponding object of type T using provided deserializer.
JsonException
- in case of malformed json
SerializationException
- if given input can not be deserialized
fun <reified T : Any> fromJson(tree: JsonElement): T
Deserializes json element into a corresponding object of type T using serializer registered in the module.
JsonException
- in case of malformed json
SerializationException
- if given input can not be deserialized