JsonWebServiceResponseUtility.HasJson method

Returns true if the response content uses the JSON content type.

public static bool HasJson(this WebServiceResponse response)
parameter description
response The response.

Return Value

True if the response content uses the JSON content type (“application/json” or “application/schema+json”) and the content is not empty.

See Also