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
0
votes
2 answers

Json string Comparision

I am working on a c++ project where I need to compare two or more Json string that will be passed to me as arguments in a function and i have to return a bool accordingly. I am using Jsoncpp but I am unable to compare the entirety of the two Json…
Bishal Sahoo
  • 71
  • 2
  • 11
0
votes
1 answer

Is it safe to disable library warning at linking stage in Visual Studio 2017(VC++)?

I'm using a jsoncpp library in my visual C++ project(Visual Studio 2017). When I build my project, I'm getting following warning. 1>jsoncpp.lib(json_reader.obj) : warning LNK4099: PDB 'jsoncpp_lib_static.pdb' was not found with…
msc
  • 33,420
  • 29
  • 119
  • 214
0
votes
0 answers

jcon-cpp build library building

I am trying to build library JCON-CPP for QT from sources. When I try to use cmake .. There are errors : CMake Error at CMakeLists.txt:2 (cmake_policy): Policy "CMP0043" is not known to this version of CMake. CMake Error at…
Ladence
  • 244
  • 2
  • 9
0
votes
0 answers

Jsoncpp - libjsoncpp.so.20: cannot open shared object file: No such file or directory

I have a piece of code that accesses data using cURL and prints it as a string. This part is working fine. I need to take this string and parse it using Jsoncpp. However, when I add the line: Json::Value json_data; there is a runtime error: …
skr
  • 914
  • 3
  • 18
  • 35
0
votes
2 answers

jsoncpp compilation error for Json::Value type

This is the schema: { "definitions": { "properties": { "Count": { "type": [ "number", "null" ] } } } } I want to read members in "type" I tried to attempt in many ways,…
0
votes
1 answer

How to read this string into jsoncpp 's Json::Value

I have such a json string …
yangl
  • 337
  • 1
  • 3
  • 18
0
votes
1 answer

C++ jsoncpp: Segfault while reading json file in a loop

Json file: [ {"A":"sample1","B":"sample2","C":"sample3,"D":"sample4"}, {"A":"sample5","B":"sample6","C":"sample7,"D":"sample8"}, {"A":"samplea","B":"sampleb","C":"sampleb,"D":"sampleb"}, . . . } ] I have 2075980…
Etaki
  • 1
0
votes
0 answers

Inspect Json::Value from JsonCpp in VS2017 Debugger

I'm using the JsonCpp library. Previously, in VS 2015, it was possible to inspect the contents of a Json::objectValue with the debugger. It was shown as a std::map somewhere in the containing class (I even used a visualizer). However this is not the…
Daniel
  • 597
  • 11
  • 19
0
votes
1 answer

Error while including the jsoncpp lib

I am trying to parse JSON with C++. My Makefile looks as follows: LDFLAGS = -L/home/ting/Temp/code/jsoncpp/libs/linux-gcc-5.4.0/ ./jsoncpp/libs/linux-gcc-5.4.0/libjson.a ./jsoncpp/libs/linux-gcc-5.4.0/libjson.so INC =…
J.R.
  • 769
  • 2
  • 10
  • 25
0
votes
0 answers

cmake on windows. Link libraries in folder

Disclaimer: I'm new to cmake so i have no idea what I'm doing. All guides and tutorials i find seem to think I'm running a 20 man team that needs to work together. All I'm trying to do is put all my libraries in an include folder and lib folder. In…
Sniffleeu
  • 49
  • 8
0
votes
2 answers

Getting strange characters in fields with output from json c++

I'm using the json value I receive from my .get(movie) function to get the values of each of the keys within my json movie object. I'm trying to output it into fields in a fltk GUI, which need to be const char * type. However, I'm getting strange…
Kendra
  • 125
  • 2
  • 12
0
votes
2 answers

Reading Array of the json in JsonCpp

I tried to write a simple JSON reader for my program then I use JsonCpp. I have this JSON from my web server: { "return": { "status":200, "message":"Accepted" }, "entries": [ { "messageid":185002992, …
Ali Sepehri-Amin
  • 493
  • 1
  • 6
  • 18
0
votes
0 answers

Jsoncpp - memory consumption with nested arrays

This code eats up to 1.5GB of memory and doesn't release it. Why ? I'm expecting the memory to be freed after the call to the bigone function. How to fix this ? #include #include #include…
lxndr
  • 11
  • 3
0
votes
1 answer

JsonCpp heap object handling memory management

With JsonCpp I want to serialize big objects with limited stack resources on an embedded device. All the examples I found are using stack objects which will be copied into each other (I guess). I want to reduce the copying the Json::Value objects…
florgeng
  • 856
  • 1
  • 9
  • 17
0
votes
1 answer

Jsoncpp cmake throws warning treated as error when executed inside TravisCI for github

I have a .travis.yml file inside my repo (which will always run whenever I push to github) that looks like this: --- language: java sudo: true jdk: oraclejdk8 addons: apt: sources: - ubuntu-toolchain-r-test -…
fire-d
  • 1
  • 1