+ cJSON *iterator = NULL;
+ *count = 0;
+ int i = 0;
+
+ cJSON_ArrayForEach(iterator, faultNotifDelay)
+ {
+ if (cJSON_IsNumber(iterator))
+ {
+ period_array[i++] = iterator->valueint;
+ }
+ else
+ {
+ printf("Invalid number in array!");
+ }
+ }
+
+ *count = i;