Example #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;
}
Example #2
0
JsonObject JsonObject::get_object(const std::string &name)
{
    int pos = verify_position(name);
    jsin->seek(pos);
    return jsin->get_object();
}
Example #3
0
JsonIn* JsonObject::get_raw(const std::string &name)
{
    int pos = verify_position(name);
    jsin->seek(pos);
    return jsin;
}
Example #4
0
bool JsonObject::has_member(const std::string &name)
{
    return (bool)verify_position(name, false);
}
Example #5
0
void JsonObject::throw_error(std::string err, const std::string & name) {
    jsin->seek(verify_position(name,false));
    jsin->error(err);
}