I think that I have found out a way to implement the logic that @yakovlieva.olena desired.
I have revised my previous post
Now this post includes a description how to transform a large JSON into a smaller one while specifying which entries to select up and how to drop the rest off. You can specify the selection criteria by short declarative expressions, like this:
// I am interested in a HTTP request of which URL contains a string ".jquery.min.js"
Filter filter1 = Filter.filter(
Criteria.where("request.url")
.regex(Pattern.compile('.*jquery\\.min\\.js')));
// I am also interested in "fontawesome-webfont.woff2"
Filter filter2 = Filter.filter(
Criteria.where("request.url")
.regex(Pattern.compile('.*fontawesome\\-webfont\\.woff2.*')));
Filter filter = filter1.or(filter2)
The filtering is implemented on top of the Jayway JsonPath library.
Of course, my project is not an immediate answer to the case of @yakovlieva.olena. However, I believe that @yakovlieva.olena can reuse my design to solve his/her issue.