Created example for exporting any data, in this case a JSON file. Need
to link this functionality with the query object now.