Decode string to an entity of type T or return null if json is invalid
the decoded object of type T
the custom json object used to decode the specified string