Searched refs:JsonObject (Results 1 – 5 of 5) sorted by relevance
40 ASSERT_EQ(obj.GetValue<JsonObject::StringT>("key_2"), nullptr);57 JsonObject obj(str);60 ASSERT_NE(obj.GetValue<JsonObject::ArrayT>("key_0"), nullptr);61 auto &main_array = *obj.GetValue<JsonObject::ArrayT>("key_0");64 ASSERT_NE(main_array[0].Get<JsonObject::StringT>(), nullptr);65 ASSERT_EQ(*main_array[0].Get<JsonObject::StringT>(), "elem0");68 ASSERT_NE(main_array[1].Get<JsonObject::ArrayT>(), nullptr);69 auto &inner_array = *main_array[1].Get<JsonObject::ArrayT>();71 ASSERT_NE(inner_array[0].Get<JsonObject::StringT>(), nullptr);72 ASSERT_EQ(*inner_array[0].Get<JsonObject::StringT>(), "elem1.0");[all …]
25 bool JsonObject::Parser::Parse(const std::string &text) in Parse()32 bool JsonObject::Parser::Parse(std::streambuf *stream_buf) in Parse()39 bool JsonObject::Parser::Parse() in Parse()50 bool JsonObject::Parser::GetJsonObject(JsonObject *empty_obj) in GetJsonObject()80 bool JsonObject::Parser::InsertKeyValuePairIn(JsonObject *obj) in InsertKeyValuePairIn()122 bool JsonObject::Parser::GetJsonString() in GetJsonString()193 bool JsonObject::Parser::GetString(char delim) in GetString()212 bool JsonObject::Parser::GetNum() in GetNum()225 bool JsonObject::Parser::GetBool() in GetBool()238 bool JsonObject::Parser::GetValue() in GetValue()[all …]
32 class JsonObject {40 using JsonObjPointer = std::unique_ptr<JsonObject>;83 explicit Parser(JsonObject *target) : current_obj_(target) {} in Parser()95 bool GetJsonObject(JsonObject *empty_obj);102 bool InsertKeyValuePairIn(JsonObject *obj);112 JsonObject *current_obj_ {nullptr};120 JsonObject() = default;121 ~JsonObject() = default;122 NO_COPY_SEMANTIC(JsonObject);123 NO_MOVE_SEMANTIC(JsonObject);[all …]
24 panda::JsonObject json_object(text); in JsonObjectCtor1FuzzTest()
26 panda::JsonObject json_object(&str_buf); in JsonObjectCtor2FuzzTest()