X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fo1%2Fves%2FJsonHelper.hpp;h=441fd92a7b86a5f1293f61460892b0f8ded31058;hb=6dc8a4c17da24847b3a3aee91b37151f77a8a5bc;hp=6509ddaf568390f911cd476073d4a599a2d2bfd9;hpb=6fe137e5c6f9470f4f48448f5651573c42bd8aed;p=o-du%2Fl2.git diff --git a/src/o1/ves/JsonHelper.hpp b/src/o1/ves/JsonHelper.hpp index 6509ddaf5..441fd92a7 100644 --- a/src/o1/ves/JsonHelper.hpp +++ b/src/o1/ves/JsonHelper.hpp @@ -39,7 +39,8 @@ class JsonHelper const char* value); static cJSON* addNodeToObject(cJSON * parent, \ const char * nodeName, double value); - + static cJSON* addNodeToObject(cJSON * parent, \ + const char * nodeName, bool value); static void deleteNode(cJSON * node); static cJSON_bool addJsonNodeToObject(cJSON * parent, \ const char * nodeName, cJSON * node); @@ -49,6 +50,9 @@ class JsonHelper static char *printUnformatted(cJSON * node); static char *print(cJSON * node); static const char *getError(); + static cJSON* createArray(); + static cJSON_bool addJsonNodeToArray(cJSON * array, cJSON* node); + };