I have only previously worked with C++ in Visual Studio development environment. Now I have been asked to receive and send data using JSON.
I have searched the internet but can't find any example of JSON being used by C++ in Visual Studio. If anyone has worked with JSON in C++ in Visual Studio 2010 please pass on the link.
If you will install boost::spirit you can use this lib JSON Spirit. Works in with VS like a charm.
UPDATE Include json spirit directory and use
#include <json_spirit/json_spirit.h>
#include <json_spirit/json_spirit_reader_template.h>
#include <json_spirit/json_spirit_writer_template.h>
JsonCpp is a C++ JSON parser that builds in VS according to their README.
Apache Thrift supports JSON. This is a nice alternative, because in addition to JSON, you also get transport mechanisms (TCP sockets, etc) and optionally in a multi-threaded environment.
Here you can find info about JSON for windows.
Thrift is multi-platform, so it should work quite well with VS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With