Lines Matching defs:item
39 cJSON *item = NULL;
42 item = cJSON_Parse("{\"one\":1, \"Two\":2, \"tHree\":3}");
47 found = cJSON_GetObjectItem(item, NULL);
50 found = cJSON_GetObjectItem(item, "one");
51 TEST_ASSERT_NOT_NULL_MESSAGE(found, "Failed to find first item.");
55 found = cJSON_GetObjectItem(item, "tWo");
56 TEST_ASSERT_NOT_NULL_MESSAGE(found, "Failed to find first item.");
60 found = cJSON_GetObjectItem(item, "three");
61 TEST_ASSERT_NOT_NULL_MESSAGE(found, "Failed to find item.");
65 found = cJSON_GetObjectItem(item, "four");
68 cJSON_Delete(item);
73 cJSON *item = NULL;
76 item = cJSON_Parse("{\"one\":1, \"Two\":2, \"tHree\":3}");
81 found = cJSON_GetObjectItemCaseSensitive(item, NULL);
84 found = cJSON_GetObjectItemCaseSensitive(item, "one");
85 TEST_ASSERT_NOT_NULL_MESSAGE(found, "Failed to find first item.");
89 found = cJSON_GetObjectItemCaseSensitive(item, "Two");
90 TEST_ASSERT_NOT_NULL_MESSAGE(found, "Failed to find first item.");
94 found = cJSON_GetObjectItemCaseSensitive(item, "tHree");
95 TEST_ASSERT_NOT_NULL_MESSAGE(found, "Failed to find item.");
99 found = cJSON_GetObjectItemCaseSensitive(item, "One");
102 cJSON_Delete(item);
132 cJSON item[1];
133 item->type = cJSON_Number;
134 TEST_ASSERT_FALSE(cJSON_IsInt64Number(item));
136 item->type = cJSON_IsInt64;
137 TEST_ASSERT_FALSE(cJSON_IsInt64Number(item));
139 item->type = cJSON_Number | cJSON_IsInt64;
140 TEST_ASSERT_TRUE(cJSON_IsInt64Number(item));
142 item->type = cJSON_False;
143 TEST_ASSERT_FALSE(cJSON_IsInt64Number(item));
148 cJSON *item = cJSON_CreateString("item");
151 cJSON_AddInt64NumberToObject(NULL, "item", 0LL);
152 cJSON_AddInt64NumberToObject(item, NULL, 0LL);
157 cJSON_Delete(item);