Added in JSON export functionality for the queryobject. Button may need
to be styled better to fit in with everything else.