Top "Jsoncpp" questions

jsoncpp is an open source JSON reader and writer for C++

Reading json files in C++

I'm trying to read in a JSON file. So far I have focused on using the jsoncpp library. However, the …

c++ json dictionary jsoncpp
Iterating through objects in JsonCpp

I have a C++ application that uses jsoncpp to decode a JSON string. I have created the following function but …

c++ json jsoncpp
JSONCPP Writing to files

JSONCPP has a writer, but all it seems to do is get info from the parser and then output it …

c++ json jsoncpp
Json-cpp - how to initialize from string and get string value?

My code below crashes(Debug Error! R6010 abort() has been called). Can you help me? I'd also would like to …

c++ json jsoncpp
Converting a Json::Value to std::string?

I am using JsonCpp to build a JSON object. Once the object is built, is there a way I can …

c++ stdstring jsoncpp
Parsing JSON string with jsoncpp

I'm trying to parse a JSON string encoded with PHP and sent over TCP to a C++ client. My JSON …

c++ json jsoncpp
Create empty json array with jsoncpp

I have the following code: void MyClass::myMethod(Json::Value& jsonValue_ref) { for (int i = 0; i <= m_stringList.…

c++ json jsoncpp
How to read a JSON file containing multiple root elements?

If I had a file whose contents looked like: {"one": 1} {"two": 2} I could simply parse each separate line as a …

c++ jsoncpp
Fatal error with jsoncpp while compiling

Am new to cpp but as per project requirements i need to consume rest api and parse the response. Am …

c++ jsoncpp
Problems including jsonCpp headers

I'm trying to implement the jsoncpp libraries in my C++ code, I wrote a simple piece of code just to …

c++ header include jsoncpp compiler-errors