protected function parseJsonData($data)
    {
        if ($data != FALSE) {
            // check, if raw answer is requestedd
            if ($this->getRawAnswer()) {
                return $data;
            }
            
            $json_data = json_decode($data, TRUE);
            if (isset($json_data["errors"])) {
                $err_msg = array();
                foreach ($json_data["errors"] as $error) {
                    $err_msg[] = $error["Message"];
                }
                throw new JsonException(implode(";", $err_msg));
            } else {
                return $json_data;
            }
        } else {
            throw new ServerException("Get No Data from Server.");
        }
    }
protected function parseJsonData($data)
    {
        if ($data != FALSE) {
            // check, if raw answer is requestedd
            if ($this->getRawAnswer()) {
                return $data;
            }
            
            $json_data = json_decode($data, TRUE);
            if (isset($json_data["errors"])) {
                $err_msg = array();
                foreach ($json_data["errors"] as $error) {
                    $err_msg[] = $error["Message"];
                }
                throw new JsonException(implode(";", $err_msg));
            } else {
                return $json_data;
            }
        } else {
            throw new ServerException("Get No Data from Server.");
        }
    }
protected function parseJsonData ( $ data ) { if ( $ data != FALSE ) { // check, if raw answer is requestedd if ( $ this -> getRawAnswer ( ) ) { return $ data ; } $ json_data = json_decode ( $ data , TRUE ) ; if ( isset ( $ json_data [ "errors" ] ) ) { $ err_msg = array ( ) ; foreach ( $ json_data [ "errors" ] as $ error ) { $ err_msg [ ] = $ error [ "Message" ] ; } throw new JsonException ( implode ( ";" , $ err_msg ) ) ; } else { return $ json_data ; } } else { throw new ServerException ( "Get No Data from Server." ) ; } }
parse Json data and return data as array

@param unknown $data
@throws JsonException
@throws ServerException
@return mixed|array resultset as array
parse Json data and return data as array