Parses a typed result from a JSON response returned by the native layer.
A result containing the parsed value of type T, or an error if parsing failed.
The JSON response to parse.