Returns true if the response content uses the JSON content type.
public static bool HasJson(this HttpResponseMessage response)
| parameter | description |
|---|---|
| response | The response. |
True if the response content uses the JSON content type (“application/json” or “application/schema+json”) and the content is not empty.