I have a code which is always running in the background. compareContents() reads contents from a file periodically (based on an event) and stores it i ...
I have a code which is always running in the background. compareContents() reads contents from a file periodically (based on an event) and stores it i ...
This is the code I am using My JSON object looks something like this static char *buffer = "taskData\":[{\"treeId\":123456,\"fruitIds\":[11111,00,2 ...
I've been struggling with this issue for a while so it's time to ask for help. System: nRF9160 microcontroller running Zephyr RTOS using cellular mod ...
am still new to the cJSON library and i cant fully understand the uses of cJSON_Delete() and cJSON_free(), Is there any document that accurately d ...
I am using this docker-compose to create a Lua supported Nginx: and now I need to add cjson library to my container. I try the build method on my h ...
I am trying to parse a json payload sent via a POST request to a NGINX/Openresty location. To do so, I combined Openresty's content_by_lua_block with ...
code Whenever I use cJSON_Delete() program gets crashed and gives error *** Error in `./sample': free(): invalid pointer: 0xb5db1e18 *** I searche ...
I am facing an issue while using the cJSON Library. I am assuming that there is a memory leak that is breaking the code after a certain time (40 mins ...
Right now I'm struggling with calculating the size of a cJSON object. So far, I have done this: cJSON *payload = cJSON_CreateObject(); ... size_t siz ...
I can't fix this bug: After returning the vector struct and printing it (main.c) I get a seg fault. EXC_BAD_ACCESS typically means that the memory ad ...
In this function outdata to store a output then it pass as a input to this function then update the outputdata again pass then update like this man ...
1.i need print json format like { "numport":1 [ { "Port":1 "value":234 },{ "Port":2 "value":2344 } ] ...
I'm trying to store API request query parameters in JSON format, in a way that preserves the inferred original types of the parameters' values. I do t ...
I have a structure IoT_Publish_Message_Params that needs to be prepared in order to prepare a publishing on AWS IoT. The below snippet works completel ...
I want to use (cJSON) library in my c++ code. How do I download and add this library to my CLion project in order to import it into my code like this ...
As i am new to the cJOSN parser, someone please help to parse the following json in a generic way. Here name and Strength is fixed. So if i choose p ...
I have a fairly simple struct Message which contains two fields of type Envelope. Everything boils down to a byte array (represented as char* since ...
cJSON provides a function CJSON_PUBLIC(cJSON *) cJSON_GetObjectItemCaseSensitive(const cJSON * const object, const char * const string) I created a ...
I have a struct with cJSON pointers as in: Somewhere in my code I create cJSON items as in myStruct.myJSON1 = cJSON_CreateObject() At the end of ...
I am programming a server for my client that keeps messages. I keep them in JSON format using cJSON -by Dave Gambler- And save them in a text file. ho ...