Lines Matching defs:Json2
25 namespace Json2 {
639 Json2::Value JsonReader::ParseJsonData2(const std::string& jsonStr)
641 return Json2::Value(cJSON_Parse(jsonStr.c_str()));
653 Json2::Value JsonReader::CreateObject()
655 return Json2::Value(cJSON_CreateObject());
658 Json2::Value JsonReader::CreateArray()
660 return Json2::Value(cJSON_CreateArray());
663 Json2::Value JsonReader::CreateBool(const bool value)
665 return Json2::Value(cJSON_CreateBool(value));
668 Json2::Value JsonReader::CreateString(const std::string& value)
670 return Json2::Value(cJSON_CreateString(value.c_str()));
673 Json2::Value JsonReader::DepthCopy(const Json2::Value& value)
675 return Json2::Value(cJSON_Duplicate(const_cast<cJSON*>(value.GetJsonPtr()), true));
678 Json2::Value JsonReader::CreateNull()
680 return Json2::Value(cJSON_CreateNull());