parseJson

inline fun <T> parseJson(json: String, logParserException: Boolean = true): T?
inline fun <T> parseJson(json: ByteArray, logParserException: Boolean = true): T?

Tries to create instance of T from provided json, null is returned when it is not possible to parse it. If logParserException set to true and exception is raised during JSON parsing, it is logged.