saptah
unread,Feb 19, 2012, 4:20:58 PM2/19/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jansson users
Hi Guys, I'm newBIE here.
Let me ask one question :)
I'm trying to construct a JSON like this:
{
"type": "some_string",
"device": {
............
............
............
............
"stations": [...]
},
}
1.- I already have the "......" block, I loaded using json_load_file()
2.- I got the array after "stations". loaded with json_load_file() too
3.- I've tried some thinks, but, the next think what I think should
work, but I doesn't:
json_final = json_pack( "{s:s{s:o}}",
"type", "sisco",
"device", json_object
);
¿Can you help me to understand this library? BTW, great library, looks
very neat, but I'm very very new to this.