Collector: print query data as json instead of yaml

It is more convenient to print the queries in json format so you can copy & paste them directly into [eshead](https://github.com/mobz/elasticsearch-head) (or another tool to query the server).