Decode string to an entity of type T
the decoded object of type T
the custom json object used to decode the specified string