예제 #1
0
bool JsonObject::has_object(const std::string &name)
{
    int pos = verify_position(name, false);
    if (!pos) {
        return false;
    }
    jsin->seek(pos);
    if (jsin->test_object()) {
        return true;
    }
    return false;
}
예제 #2
0
JsonObject JsonObject::get_object(const std::string &name)
{
    int pos = verify_position(name);
    jsin->seek(pos);
    return jsin->get_object();
}
예제 #3
0
JsonIn* JsonObject::get_raw(const std::string &name)
{
    int pos = verify_position(name);
    jsin->seek(pos);
    return jsin;
}
예제 #4
0
bool JsonObject::has_member(const std::string &name)
{
    return (bool)verify_position(name, false);
}
예제 #5
0
void JsonObject::throw_error(std::string err, const std::string & name) {
    jsin->seek(verify_position(name,false));
    jsin->error(err);
}