25 json_object_object_get_ex(details,
"menuItems", &menuItemsValue);
27 json_object_object_foreach(menuItemsValue, key, val)
29 if (strcmp(json_object_get_string(val),
"-") == 0)
35 long intkey = (int)strtol(key, (
char **)NULL, 10);
36 int intkeyResult = (intkey==0 ? errno : 0);
39 if (intkeyResult == EINVAL)
46 optionsTree->
addItem(optionItem);