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

Accommodate VS2013 project to VS2015

So I've recently upgraded VS2013 to VS2015 and I'm still struggling accommodating the code & project's definitions to make it work. I have dozens of projects in my solution. I also use jsoncpp as an additional lib. When compiling a single project,…
idanshmu
  • 5,061
  • 6
  • 46
  • 92
0
votes
0 answers

Clang warnings not being suppressed in third party library (Xcode)

I'm using Xcode 6.3.2 to compile my application, which depends on JsonCpp. I would like to suppress the large number of warnings that this library generates so I've specified the path to the JsonCpp header using -isystem as advised in the Clang…
ksl
  • 4,519
  • 11
  • 65
  • 106
0
votes
1 answer

Parsing integers with JsonCpp

I am using JsonCpp v1.6.5 to parse a JSON file that contains the following: { "some-property" : 32 } After parsing the type of the value is intValue rather than uintValue. How does the parser interpret an integer as unsigned?
ksl
  • 4,519
  • 11
  • 65
  • 106
0
votes
1 answer

parsing integer array on JSONcpp

I'm having trouble parsing integer arrays using JsonCpp. I am trying to read an array of integers from json input. I'm getting the error: ambiguous overload for 'operator[]' in 'dataArray[0]' I've tried: Json::Value c_val; const Json::Value…
mousomer
  • 2,632
  • 2
  • 24
  • 25
0
votes
1 answer

Integrating jsoncpp by including amalgamated source in Xcode

I'm struggling with a Linker error in Xcode. I've created the amalgamated source, added the jsoncpp.cpp as a source file to my project, I've set the header search path to jsoncpp-master/dist and use #include "json/json.h" #include…
user3515814
  • 957
  • 2
  • 8
  • 13
0
votes
1 answer

Error in JSON string creation with / operator using jsoncpp library

I am using JSONcpp library and facing problem to create json which contains / operator (like date : 02/12/2015). Below is my code: JSONNODE *n = json_new(JSON_NODE); json_push_back(n, json_new_a("String Node", "02/05/2015")); json_char *jc =…
pkachhia
  • 1,876
  • 1
  • 19
  • 30
0
votes
2 answers

Valgrind complaining possible memory leak in std string's new operator

In my project i am using jsoncpp, boost and many libraries, when i ran the valgrind for my program in many palces including jsoncpp, boost libraries it shows possible memory leak in string creation I have pasted the valgrind error snippets…
Charzhard
  • 783
  • 1
  • 7
  • 19
0
votes
1 answer

how to iterate through the string and get individual value jsoncpp

input of json string as [ { "description" : "sample"", "id" : 3, "name" : "xyz", "numOfSnapshots" : 132, "storagePool" : 1, "volSize" : 32 },] how to extract the list and get the key and value
sai
  • 1
  • 1
0
votes
1 answer

Error when trying link jsoncpp and include it in a CUDA project: undefined reference to `Json::Value::Value(Json::ValueType)'

When I try and #include "json/json.h" in a .cu file, then run make, I get the following error: nvcc -o sound main.o process.o -L /usr/lib -lopencv_core -lopencv_imgproc -lopencv_highgui -O3 -arch=sm_20 -Xcompiler -Wall -Xcompiler -Wextra…
Harry Hedger
  • 371
  • 1
  • 2
  • 12
0
votes
1 answer

jsoncpp : error while building the documentation

I'm trying to build jsoncpp's documentation (https://github.com/open-source-parsers/jsoncpp) in Ubuntu 14.10. As said in the github's README.md, I run the doxybuild.py script but I get the following error : $> cd jsoncpp/ $> python doxybuild.py…
Jérémy Pouyet
  • 1,989
  • 6
  • 28
  • 55
0
votes
1 answer

How to get value from Json

I need to get the value(String or int) from a Json AdSpot which has a toJson(), I need to retrieve the field by key "ext" (it's also a Json), then retrieve field by key "isBanner" from the Json value of ext. Here is the Json…
David Change
  • 29
  • 1
  • 7
0
votes
1 answer

cmake doesn't add the jsoncpp generated files to the bin

I used https://github.com/open-source-parsers/jsoncpp and downloaded cmake, python, scons. Followed everything that was in build guide and cmake doesn't put what is generated in the bin directory, anyone have an idea? Using windows 7 if that helps
0
votes
1 answer

jsoncpp empty root node with comment

Using jsoncpp, if I use the following code, I get a root node with a comment and a Json::ValueType of nullValue: std::string somejson("// Configuration options\ {\ // Default encoding for text\ \"encoding\" : \"UTF-8\",\ \ // Plug-ins loaded at…
0
votes
2 answers

How to use jsoncpp without jsoncpp.dll?

strcpy(this->encoding, jsonvalue.get("encoding", "").asCString()); I need to work with json data in my program, yesterday i downloaded it using nuGet, coded all i needed, commented path to jsoncpp.lib but system doesnt allow me to start the program…
user3883435
  • 13
  • 2
  • 5
0
votes
0 answers

jsoncpp find or write a value into substructure via combined keys

I am using the jsoncpp library to parse and create json structures. Is it possible to convert following syntax jsonText["name1"]["name2"] = "Testmessage"; into something like this jsonText["name1.name2"] = "Testmessage"; so that …
user3263577
  • 11
  • 1
  • 3