Sign in to follow this  
Laval B

C/C++ JSON library

Recommended Posts

Laval B    12387

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
EWClay    659
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
Laval B    12387

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this