Parses a JSON string to the specified type.
The type of the returned object.
The type predicate to validate the deserialized object.
The JSON string to parse.
The desrialized object, if the type guard function returns true; otherwise, undefined.
Parses a JSON string to the specified type.