Parse a json string into a kotlin object.
parsed type T
type of the object to parse.
JSON string to parse