Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
0 votes
1 answer
57 views

I have an issue with JsonCpp library in C++ and sorting of keys after the json is produced. I found that JsonCpp is ignoring alphabetical order if there is Lowercase and Uppercase difference. It ...
marhyno's user avatar
  • 699
-1 votes
2 answers
130 views

My C++ program below is supposed to read a json file called english.json and display the "title" information. #include <iostream> #include <fstream> #include <json/value.h> ...
Anorak The Omniscient's user avatar
1 vote
1 answer
73 views

My C++ program below is supposed to read a json file called english.json and display the "title" information. #include <iostream> #include <fstream> #include <json/value.h> ...
Anorak The Omniscient's user avatar
1 vote
0 answers
205 views

I am getting error: cannot open source file nlohmann/adl_serializer.h in json.hpp I have included json.hpp after correctly installing nlohmann-json via vcpkg but getting above error. When I am ...
Aishwarya Dawar's user avatar
1 vote
1 answer
120 views

Yesterday I came across a function like this in my team's code, using the jsoncpp library: #include <json/value.h> Json::Value makeList() { Json::Value list(Json::arrayValue); list.append(...
Harry Cutts's user avatar
  • 1,436
0 votes
1 answer
166 views

I have a make() static method in a class Response. It is overloaded to take either std::string or Json::Value from jsoncpp. I overloaded the method to look like this: Response::make(Json::Value body) {...
Emmanuel Amodu's user avatar
0 votes
1 answer
192 views

I am working on a project with this directory structure. WeaselTestApp --build ... --weasel ... --CMakeLists.txt --main.cpp --CMakeLists.txt --conanfile.txt ...
Emmanuel Amodu's user avatar
2 votes
2 answers
432 views

I am playing around with JsonCpp and have noticed weird behavior when getting to the end of uint64 range. Numbers in range works properly. Numbers above range but between [2**64,2**64+2**11] return 0. ...
Danny Cohen's user avatar
0 votes
1 answer
124 views

I wrote a code in C++ to generate a .json file using the JsonCpp library. My issue is that I'm struggling to maintain the display order as it appears in the sequence of code within the file. Currently,...
Abdelaziz HAMMOUABDALLAH AZIZ 's user avatar
2 votes
0 answers
155 views

I have been facing issues while reading file on ARM64 based system as file is getting truncated and able to read partially only. I am able to read the file properly on linux x8664 . #include <...
user2997518's user avatar
0 votes
1 answer
275 views

I want to replace a parameter in my JSON file with a string. My script scrubs a json file for all 'dialogue' strings, exports them to a txt file where they can be edited and than reimports them back ...
hoboayoyo's user avatar
0 votes
1 answer
347 views

Problem: I'm trying to extract a line from a json file and put it in a txt file. The issue is that certain characters are represented as escaped unicode instead of the standard unicode representation. ...
hoboayoyo's user avatar
-2 votes
2 answers
769 views

I am facing the exact same error as this but for mac os Error message looks like this: myfile.cpp:12:10: fatal error: json/json.h: No such file or directory initially I was trying to run it like this:...
ishandutta2007's user avatar
0 votes
2 answers
812 views

Having some trouble right now working with conan2, cmake and the jsoncpp library. I've tried to make the jsoncpp a shared library. I've tried using the jsoncpp/json/json.h path. I don't want to run ...
Cogwizzle's user avatar
  • 550
0 votes
1 answer
495 views

So I was wondering how can I actually use try to minimize me repeating a particular value and I could just refer to a different key present somewhere in the JSON. For example in data.json "...
CagesThrottleUs's user avatar
0 votes
1 answer
6k views

I need my project to be able to use json format. I was suggested this github : https://github.com/open-source-parsers/jsoncpp I have been trying to integrate it to my project for multiple hours and ...
Justin's user avatar
  • 1
0 votes
1 answer
221 views

#include<string> #include<iostream> #include<json/json.h> #include<cpr/cpr.h> using namespace std; using namespace cpr; int main() { Response r = Get(Url{ "https://...
John Doe's user avatar
1 vote
2 answers
1k views

I am working in C++ language, visual studio 2022, and using jsoncpp library for working with Json. To Give you an Idea, here is an example of Json data I am working with [ { "name&...
Akash Rajawat's user avatar
1 vote
2 answers
2k views

I have 2 Json files having 100,000 records and 5 columns each. My goal is to merge both files to get a single file with 200k records using C++. My json files look like this: [ { "city&...
Akash Rajawat's user avatar
0 votes
0 answers
46 views

how to calculate the euclidean distance in a json file? i have a error: no match for 'operator+' { "name" : "att5", "comment" : "5 capitals of the US (...
kfkt's user avatar
  • 1
0 votes
1 answer
228 views

My goal is to extract column heads from a Json file converted from a normal table in CSV (Excel sheet) using C++. I am using Visual Studio 2022 IDE. My Json file looks like this { "people" ...
Akash Rajawat's user avatar
1 vote
2 answers
585 views

I'm trying to compile the following MWE that uses jsoncpp installed from Conan and set up with cmake, using g++-12 (from home-brew) but I'm clashing against all types of linking errors. (adding repo ...
aram's user avatar
  • 1,454
1 vote
0 answers
140 views

Trying to figure out the syntax for using jsonCPP in visual studio to drill down into a json file. Not sure how to go beyond the first layer. An example can be seen in the picture as a use case with: &...
Brandon Reale's user avatar
0 votes
1 answer
221 views

I have set up my vscode env with mingw64 for c++, and now it can use internal lib and compiled succeed, but when i want to use jsoncpp third lib in my project, i got errors: fatal error: json/json.h: ...
Jim's user avatar
  • 839
2 votes
0 answers
230 views

I'm trying to use the PocketSphinx speech to text library in my project as a Git submodule. So, I added the submodule to my dependency folder and I added the following code to my MakeFile: ...
Aniket Sharma's user avatar
0 votes
1 answer
210 views

I compiled latest sdk 5.2 beta 82 and tried it, but app is crashing with following stack trace: dyld[591]: Library not loaded: @rpath/libjsoncpp.24.dylib Referenced from: <37C02679-31AD-371A-8BBD-...
zeshanbaig786's user avatar
0 votes
0 answers
2k views

I am having trouble using the header files from jsoncpp in my program. I am trying to include the library globally through the use of a makefile CFLAGS, but its hard for me to figure out why its not ...
zbrandon98's user avatar
0 votes
0 answers
65 views

When I run this code, it waits for 30 seconds or so and then the terminal exits with: [process exited with code 3221226505 (0xc0000409)] which I do not recognise at all. I also had this typo return ...
Correctmite's user avatar
1 vote
0 answers
220 views

I am loading my program config at the program start from a json file. To make sure, that the file contains every requested key, I am checking every json key and return its existence to a bool variable ...
gear's user avatar
  • 441
0 votes
1 answer
633 views

I am working in a project which uses jsoncpp for parsing and cmake for compilation. I added the jsoncpp official git repository as a submodule to my project with git submodule add REPO_URL external/...
Joao Donasolo's user avatar
-1 votes
1 answer
930 views

I have the following json: { "laureates": [{ "id": "1", "firstname": "Wilhelm Conrad", "surname": "Röntgen&...
Matias's user avatar
  • 13
1 vote
0 answers
604 views

I am using JsonCPP library in my C++ project . I created a C++ dll with a function which will take Json::Value as input parameter . I have created another one exe which calls this function by passing ...
Suresh Kumar's user avatar
0 votes
1 answer
910 views

I need to search for an element in a json file using the jsoncpp library. I can't wrap my head around how to get to the most inner array... Any thoughts? { "key": int, "array1&...
Maria's user avatar
  • 71
0 votes
1 answer
380 views

I'm making a Text Adventure in C++ as an attempt to learn the language. The player interacts using commands like look or travel north. So far I've got code that converts the text to lowercase and then ...
Logan Bentley's user avatar
0 votes
0 answers
824 views

I am accessing some json objects via a rest interface, by converting the Json::Value to a string and respond this string to the request. std::string json_to_string(Json::Value& json_object) { ...
gear's user avatar
  • 441
1 vote
1 answer
2k views

I found this soultion to convert any kind of iteratable (vector of bool's, vector of int's, etc.) to a json array, refering to this Post template <typename iterable> Json::Value iterable2json(...
gear's user avatar
  • 441
1 vote
2 answers
286 views

it was difficult to find a precise title for the question, so if you have a better nameing, please help me out! I am working on my program configuration with json, where I read hundreds of values from ...
gear's user avatar
  • 441
2 votes
1 answer
10k views

I installed jsoncpp on ubuntu with 'sudo apt-get install libjsoncpp-dev' and tried to run a minimalistic test program: #include <iostream> #include <fstream> #include <jsoncpp/json/json....
Tom's user avatar
  • 79
0 votes
0 answers
1k views

I am trying to get data from my json document into my main.cpp using Jsoncpp. I am getting this error message : libc++abi: terminating with uncaught exception of type Json::RuntimeError: * Line 1, ...
AntoineGaubil's user avatar
0 votes
0 answers
1k views

// Parse JSON and show errors if needed Json::CharReaderBuilder rbuilder;Json::Reader reader; Json::Value root; // Configure the Builder, then ... std::string errs; std::istringstream config_doc(...
user8145959's user avatar
3 votes
1 answer
332 views

const Descriptor* descriptor_ptr = msg.GetDescriptor(); const Reflection* reflection_ptr = msg.GetReflection(); const FieldDescriptor* field_ptr = descriptor_ptr->field(i); Json::Value value; if (...
Adachi Sakura's user avatar
2 votes
0 answers
73 views

i made a login that get the response from my server and try to parse with jsoncpp but i get this error: std::length_error in corrispondenza della posizione di memoria 0x00AAE668. at "if (...
CrSerials's user avatar
0 votes
1 answer
751 views

I have a simple use case where I wish to serialize and transmit vectors of integers between 0 and 256. I surmised that the most space-efficient way of doing so would be to serialize the vector as a ...
Charles Buchanan's user avatar
0 votes
1 answer
199 views

I am currently working with some config files, and I wanted to map options with configuration functions. So far, I have this working code: std::unordered_map<std::string, void (Model::*)(int)> ...
Marcos Alvarez's user avatar
0 votes
0 answers
119 views

I want to search argv[2] value in JSON but i couldn't do this. I looked the other threads but they couldn't hep either. Because i am a newbie. So ho can I do this? #include <iostream> #include &...
ChemistryIsTheBest's user avatar
0 votes
1 answer
1k views

I'm stuck at trying to read an array from a Json file. Here is the People.json file: { "ID": [ { "1": { "name": "Fred", "...
Filip's user avatar
  • 5
1 vote
1 answer
104 views

If I codded as Json::Value root, arr; arr.append(0); arr.append(0); arr.append(0); root["array"] = arr; The output was like as.. { "array" : [ 0, 0 ] } The problem is that only ...
Ainbin's user avatar
  • 11
0 votes
1 answer
2k views

void exp::example(std::string &a, std::string &b) { if (m_root.isObject() && m_root.isMember(a)) { if (m_root[a].isMember(b)) { m_root[a].append(...
BarYaron's user avatar
0 votes
1 answer
509 views

I'm writing a C++ class for Reading/Writing strings from/to a json file using the jsoncpp lib. My question is if it's possible to create a Json::Value private member for my class and use this every ...
razz's user avatar
  • 45
0 votes
0 answers
476 views

Is there a "proper" way to extract an element of array which is a child of an object in JsonCPP? I'm dealing with JsonRPC objects along the lines of: { "jsonrpc": "2.0&...
SF.'s user avatar
  • 14.1k

1
2 3 4 5
7