readValue

inline fun <T> Json.readValue(jsonData: JsonValue, name: String? = null): T

Read a value of type T from a jsonData attribute with a name. If name is null, this will directly read jsonData as an object of type T.