59 *root = cJSON_CreateObject();
61 cJSON_AddItemToObject(*root,
"searchResult", *sr = cJSON_CreateArray());
73 if (NULL != SEARCH_RESULT_JSON) {
74 cJSON *obj = cJSON_CreateObject();
76 cJSON_AddStringToObject(obj, key, value);
77 cJSON_AddItemToArray(SEARCH_RESULT_JSON, obj);
102 char *out = cJSON_PrintUnformatted(root);