decode

abstract fun <T : Any> decode(json: String, type: Type): T(source)

Decode a JSON string into an instance of T.

Return

The deserialized value.

Parameters

json

The JSON string to deserialize.

type

The target Type token (e.g. GraphContainer parameterized type).