jsonResponseFilter
Description
Select exchanges having JSON response body. The content-type header is checked to determine if the content body is a JSON.
Evaluation scope
Evaluation scope defines the timing where this filter will be applied.
{.alert .alert-info} ::: responseHeaderReceivedFromRemote This scope occurs the moment fluxzy has done parsing the response header. :::
YAML configuration name
jsonResponseFilter
Settings
This filter has no specific characteristic
The following table describes the customizable properties available for this filter:
{.property-table .property-table-filter} ::: | Property | Type | Description | DefaultValue | | :------- | :------- | :------- | -------- | | inverted | boolean | Negate the filter result | false | :::
Example of usage
The following examples apply a comment to the filtered exchange
Select exchanges having JSON response body. The content-type header is checked to determine if the content body is a JSON.
rules:
- filter:
typeKind: JsonResponseFilter
actions:
- typeKind: ApplyCommentAction
comment: filter was applied
.NET reference
View definition of JsonResponseFilter for .NET integration.
See also
The following filters are related to this filter:
- cssStyleFilter
- contentTypeXmlFilter
- fontFilter
- jsonRequestFilter
- jsonResponseFilter
- imageFilter <<<<<<< HEAD =======
- htmlResponseFilter
b5d51bd2a3f1870beb9607eaba46ac93d959bb15