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...
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...
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 ...
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:...
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...
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",
...
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.