Questions tagged [jsoncpp]

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

jsoncpp is an implementation of a JSON reader and writer in C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.

318 questions
-2
votes
1 answer

Using if else statement with json values in jsoncpp

I am trying to do something similar using jsoncpp inside a function which returns json values as strings. std::string some_function(std::string val){ . . . if(val=="date") { Json::Value my=root["data"]["date"]; std::cout<<"Date"; } else…
Eka
  • 14,170
  • 38
  • 128
  • 212
-3
votes
1 answer

Reading Json file's root in c++ with jsoncpp

File: { "somestring":{ "a":1, "b":7, "c":17, "d":137, "e":"Republic" }, } how can I read the somestring value by jsoncpp?
Sooran
  • 3
  • 2
-3
votes
1 answer

how to compiling jsoncpp with /clr?

I have recently using jsoncpp in my mfc project and it works fine.But when i trying to compiling the project with /clr and i got linker error below : 1>lib_json.lib(json_writer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value…
coder
  • 163
  • 2
  • 3
  • 12
1 2 3
21
22