0

json_object_get_string : Get string value of a json object

Posted by Joys of Programming on in C/C++, JSON, json-c

json_object_get_string() function is used to get the string value of a json object. The syntax It takes json_object as a parameter and returns back a string. The following program demonstrates this. the function json_parse accepts a json_object with one or more key:string pairs. Let’s compile the program. If you fail any compilation issues, refer the [...]

Tags: , , , ,

 
0

json_object_object_foreach : Browse through every json object

Posted by Joys of Programming on in C/C++, JSON, json-c, Web

You can browse through every json object using the macro json_object_object_foreach The syntax where obj is the json object you want to parse, key and value correspond to key: value pairs. As mentioned before, json_object_object_foreach is a macro defined something like this So key, val are not some variables, but you can choose any random [...]

Tags: , , , ,

 
0

How to install json-glib in Linux (Ubuntu)?

Posted by Joys of Programming on in C/C++, json-c, Web

json-glib is a C library for manipulating JSON data in C/C++- for serializing and deserializing JSON data. It can be downloaded from here. But if you are working in Ubuntu or other debian based systems you can execute the following commands If you want to debug your programs and see the various steps of serializing/deserializing [...]

Tags: , ,

 
1

json-c / libjson Tutorial with Examples

Posted by Joys of Programming on in C/C++, json-c

JSON is a  data inter-exchange format. When compared to XML, it is very lightweight and more human-readable. The Data representation has some what a similar representation like C/C++ structures. It is nowadays very heavily used data format for data transfer in the web. Most languages like PHP have functions to manipulate JSON data. In case [...]

Tags: , , ,

 
0

How to Install Json-C in Linux (Ubuntu)?

Posted by Joys of Programming on in C/C++, json-c, Linux, Web

json-c is a C library for manipulating JSON data in C/C++. It can be downloaded from here. But if you are working in Ubuntu or other debian based systems you can execute the following commands If you want to debug your programs and see the various steps for debugging, you can also install the libjson [...]

Tags: , , ,

Copyright © 2009-2012 Joys of Programming All rights reserved.
Desk Mess Mirrored v1.8.1 theme from BuyNowShop.com.