cjson Questions

1

I encountered this bug in cjson lua when I was using a script in redis 3.2 to set a particular value in a json object. Currently, the lua in redis does not differentiate between an empty json arra...
Bunion asked 7/4, 2017 at 8:4

2

Solved

I am using the cJSON library and I have a function as follows: void printJsonObject(cJSON *item) { char *json_string = cJSON_Print(item); printf("%s\n", json_string); } Will this function leak...
Mud asked 10/12, 2014 at 6:13

2

I'm building an application that parses a JSON template and then replaces the values of the objects with new data. My question is what is the standard way to represent empty data in JSON? This is ...
Buatti asked 25/8, 2017 at 13:13

3

Solved

I am trying to create JSON object like below but I am not able to add the second item in it e.g: "CarType": "mercedes", "carID": "merc123" and also other items. I want to create JSON like this:...
Pallet asked 16/8, 2017 at 8:50

1

Solved

I install luarocks: $ sudo apt-get install luarocks I install lua-cjson by luarocks: $sudo luarocks install lua-cjson show packages: $luarocks list Installed rocks: ---------------- lua-cjs...
Womanly asked 29/9, 2016 at 2:51

4

Solved

I am attempting to use the cJSON library, written by Dave Gamble, to read in the following JSON array: "items": [ { "name": "command", "index": "X", "optional": "0" }, { "name": "status", ...
Acidify asked 3/6, 2013 at 15:55

2

Solved

I use cJSON in my program to convert my values to JSON and write it to file. Here is the example of my code: void writeStructToFile(IOPipe this, struct structtype somevalues) { cJSON *jout = cJSO...
Cloak asked 2/10, 2014 at 10:14
1

© 2022 - 2024 — McMap. All rights reserved.