Lines Matching defs:json
310 APPSPAWN_CHECK(cJSON_IsArray(configs), return 0, "json is not array.");
313 APPSPAWN_CHECK(arrayLen < APP_MAX_GIDS, arrayLen = APP_MAX_GIDS, "More gid in gids json.");
554 cJSON *json = cJSON_GetArrayItem(configs, i);
555 if (json == NULL) {
558 SandboxNameGroupNode *node = ParseNameGroup(sandbox, json);
577 cJSON *json = cJSON_GetArrayItem(configs, i);
578 if (json == NULL) {
581 char *name = GetStringFromJsonObj(json, "name");
586 ret = parseConfig(sandbox, name, json);
594 cJSON *json = cJSON_GetObjectItemCaseSensitive(root, "global");
595 if (json) {
596 sandbox->sandboxNsFlags = GetSandboxNsFlags(json);
597 char *rootPath = GetStringFromJsonObj(json, "sandbox-root");
604 sandbox->topSandboxSwitch = GetBoolValueFromJsonObj(json, "top-sandbox-switch", true);
616 return APPSPAWN_SYSTEM_ERROR, "Invalid json");
647 cJSON *json = cJSON_GetObjectItemCaseSensitive(root, "conditional");
648 if (json != NULL) {
650 cJSON *config = cJSON_GetObjectItemCaseSensitive(json, "permission");
654 config = cJSON_GetObjectItemCaseSensitive(json, "spawn-flag");
658 config = cJSON_GetObjectItemCaseSensitive(json, "package-name");