Lines Matching refs:item
362 cJSON *item = cJSON_GetObjectItem(object_, key);
363 if (item == nullptr) {
366 if (cJSON_IsBool(item) == 0) {
370 *value = cJSON_IsTrue(item) != 0;
416 cJSON *item = cJSON_GetObjectItem(object_, key);
417 if (item == nullptr) {
420 if (cJSON_IsNumber(item) == 0) {
424 *value = item->valuedouble;
430 cJSON *item = cJSON_GetObjectItem(object_, key);
431 if (item == nullptr) {
434 if (cJSON_IsString(item) == 0) {
438 *value = item->valuestring;
444 cJSON *item = cJSON_GetObjectItem(object_, key);
445 if (item == nullptr) {
448 if (cJSON_IsObject(item) == 0) {
452 *value = std::make_unique<PtJson>(item);
458 cJSON *item = cJSON_GetObjectItem(object_, key);
459 if (item == nullptr) {
462 if (cJSON_IsArray(item) == 0) {
466 *value = std::make_unique<PtJson>(item);
472 cJSON *item = cJSON_GetObjectItem(object_, key);
473 if (item == nullptr) {
477 *value = std::make_unique<PtJson>(item);