Unless I'm missing it, I don't see a way to have the query return JSON rather than CSV. This would be extremely helpful for automations. In addition, if we can get JSON as a return output, please allow paging or continuation token so we can return all the data and not have to work around message size limitations.