We are switching some of our homemade communication protocol from XML to JSON. This means we need to be able to encode/decode JSON strings. The applications are written in C++ and some must be compiled on Windows as well as Solaris. I've check libraries listed here http://www.json.org/. Though there is a plethora of libs written in C/C++, lots of them aren't interesting for various reasons : many are only parser but we also need the encoder, some are just too big and have too many features we don't need (http clients, ftp client, etc), some are missing key features like good utf-8 support, others aren't thread-safe ...
So far, my choice would probably be json-c-0.9. There is a few things i need to check but this one seems to be a good trade-off. I was wondering what you guys are using (in C or C++ of course). I have no preference for C or C++ as long as the C++ libraries don't overuse exceptions.
Thanks for your answers.