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=154677619436987394ff666a49beb326c91eba1b;hpb=093afd2e854d73d697233396fb9c74ed67bdd615;p=o-du%2Fl2.git diff --git a/src/o1/ves/JsonHelper.hpp b/src/o1/ves/JsonHelper.hpp index 154677619..441fd92a7 100644 --- a/src/o1/ves/JsonHelper.hpp +++ b/src/o1/ves/JsonHelper.hpp @@ -39,16 +39,20 @@ 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); static cJSON* read(const char * fileName); - static char* getValue(cJSON *json, const char *node); + static std::string getValue(cJSON *json, const char *node); static cJSON * getNode(cJSON *json, const char *node); 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); + };