added ability to add extra data to JSON params

* support for custom filtering, etc.