parse

open fun <T> parse(json: String, clazz: Class<T>): T

Parse JSON string to pojo

Return

object of generic type

Parameters

json

JSON string

clazz

Class of generic type

<T>

Generic type


open fun <T> parse(json: String, type: Type): T

Parse JSON string to pojo

Return

object of generic type

Parameters

json

JSON string

type

type

<T>

Generic type


open fun <T> parse(stream: InputStream, clazz: Class<T>): T

Parse JSON string to pojo

Return

object of generic type

Parameters

stream

Inputstream of JSON data

clazz

Class of generic type

<T>

Generic type


open fun <T> parse(stream: InputStream, type: Type): T

Parse JSON string to pojo

Return

object of generic type

Parameters

stream

Inputstream of JSON data

type

type

<T>

Generic type


open fun <T> parse(element: JsonElement, clazz: Class<T>): T

Parse JSON string to pojo

Return

object of generic type

Parameters

element

JSONElement object

clazz

Class of generic type

<T>

Generic type


open fun <T> parse(element: JsonElement, type: Type): T

Parse JSON string to pojo

Return

object of generic type

Parameters

element

JSONElement object

type

Type

<T>

Generic type