public function validate()
    {
        $data     = $this->buildData();
        $response = $this->_connection->post(Urls::URL_QUERY, $this->getConnection()->json_encode_wrapper($data), []);

        return $response->getJson();
    }
public function validate()
    {
        $data     = $this->buildData();
        $response = $this->_connection->post(Urls::URL_QUERY, $this->getConnection()->json_encode_wrapper($data), []);

        return $response->getJson();
    }
public function validate ( ) { $ data = $ this -> buildData ( ) ; $ response = $ this -> _connection -> post ( Urls :: URL_QUERY , $ this -> getConnection ( ) -> json_encode_wrapper ( $ data ) , [ ] ) ; return $ response -> getJson ( ) ; }
Validates the statement

This will post the query to the server for validation and return the validation result as an array.

@throws Exception
@return array
Validates the statement