Jump to content
  • Advertisement
Sign in to follow this  

C/C++ JSON library

This topic is 1918 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everyone

 

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.

Edited by Laval B

Share this post


Link to post
Share on other sites
Advertisement
I looked at a few, had similar issues to yours, then got fed up and made my own. JSON is a simple format so it was fairly easy.

Good luck though, there are so many one must be suitable, if you can find it.

Share this post


Link to post
Share on other sites

I looked at a few, had similar issues to yours, then got fed up and made my own. JSON is a simple format so it was fairly easy.

Good luck though, there are so many one must be suitable, if you can find it.

 

Thank you for your feedback.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!