service / com.scurab.android.uitor.json / JsonSerializer

JsonSerializer

interface JsonSerializer

Simple interface to hide the JSON library behind

Functions

fromJson

Deserialize object from json

abstract fun <T : Any!> fromJson(json: String!, clazz: Class<T>!): T

toJson

Serialize object into json

abstract fun toJson(o: Any!): String!

Inheritors

GsonSerializer

open class GsonSerializer : JsonSerializer

JacksonSerializer

open class JacksonSerializer : JsonSerializer