JsonPathFilter
is annotated for autoscan discovery - simply add the jar to your dependencies to make use of this feature. Filter is enabled for all entity media types. As long as an incoming request specifies a jsonpath in JSONPath
incoming header the filter will be applied
See jayway for the actual jsonpath implementation used
By default a custom Jackson based implementation of jayway's JsonProvider
is used, one which can deal with beans directly. You may override the provider by declaring a ContextResolver
supplying your implementation. You can configure ObjectMapper
used by the provider implementation by doing the same - declare a provider supplying your mapper