Class ResponseParser
- Namespace
- WitShells.WitClientApi
public class ResponseParser
- Inheritance
-
ResponseParser
- Inherited Members
Methods
ParseResponse<T>(object)
Parse different kinds of response payloads into T. Accepts JToken, string (raw JSON or JSON-encoded string), or POCOs. If the response uses an envelope { success, data, error } the .data node is used.
public T ParseResponse<T>(object json)
Parameters
jsonobject
Returns
- T
Type Parameters
T