Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.1
-
None
-
Patch
Description
JSONResult.setIncludeProperties() got the algorithm right, but using regular expressions to match OGNL expressions is painful. The attached patches add support for wildcard patterns to JSONResult and JSONInterceptor, and update JSONInterceptor.setIncludeProperties() to use the correct algorithm.
The patches also add include/exclude support to JSONCleaner, to support filtering on the input data. (Configuration for JSONInterceptor and JSONResult only handle output filtering.)
There are also a couple of code clean-up changes, to eliminate code duplication.