How to post json query in Discover

In recent versions of Kibana you can do so like the following; however, we don't support specifying aggregations via the filter bar: