private function decodeJSON($json)
    {
        $query = json_decode($json);

        if (json_last_error()) {
            throw new QBParseException('JSON parsing threw an error: '.json_last_error_msg());
        }

        if (!is_object($query)) {
            throw new QBParseException('The query is not valid JSON');
        }

        return $query;
    }
private function decodeJSON($json)
    {
        $query = json_decode($json);

        if (json_last_error()) {
            throw new QBParseException('JSON parsing threw an error: '.json_last_error_msg());
        }

        if (!is_object($query)) {
            throw new QBParseException('The query is not valid JSON');
        }

        return $query;
    }
private function decodeJSON ( $ json ) { $ query = json_decode ( $ json ) ; if ( json_last_error ( ) ) { throw new QBParseException ( 'JSON parsing threw an error: ' . json_last_error_msg ( ) ) ; } if ( ! is_object ( $ query ) ) { throw new QBParseException ( 'The query is not valid JSON' ) ; } return $ query ; }
Decode the given JSON

@param string incoming json
@throws QBParseException
@return stdClass
Decode the given JSON