We're looking at some alternatives on how to accomplish this, but the most challenging thing is to find a language that could be expressive enough to be able to filter through a free-form JSON.
One thing we're considering is to add support for JSON path filtering (JSONPath - XPath for JSON), but the support is somewhat limited and not exactly a standard.
Any thoughts/ideas?
-Lucian