Skip to main content
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 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
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
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
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
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
-2 votes
2 answers
771 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
1 answer
498 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
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
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
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
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
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
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
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
-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
0 votes
1 answer
911 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
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
2 answers
287 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
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
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
0 votes
1 answer
753 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
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
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
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

1
2 3 4 5
7