Possible duplicates:Is there a JSON in the Windows API that can be called from C?Using JSON Data
How to parse JSON into an object in C. I know this is easy for scripting languages like Ruby, PHP, etc. They just need to call a simple function (for example, json_decode($str)in PHP), and it strwill be parsed by a dynamic object or an associative array.
json_decode($str)
str
How to do it in C? Are there any examples?
json-glib seems like the best option if you are running on Linux. There are many other options if this does not work for you.
JSON C , , JSON , , , , . C, JSON, , . JSON ( , , , . ->).
.
->