parseJson

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

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.