code: function jsonSerialize(){
          $this->execute();
          if($this->notORM->jsonAsArray){
              return array_values($this->data);
          }else{
              return $this->data;
          }
      }
docs: JsonSerializable implementation