parseObject

inline fun <T> String.parseObject(): T?

Parses a JSON string into an object of type T.

Return

The parsed object of type T, or null if parsing fails

Parameters

T

The type to parse the JSON string into