Category : json

I was trying to install jsoncpp in ubuntu 20.04 on wsl2 and when I run the following command ./vcpkg integrate install I get : Applied user-wide integration for this vcpkg root. CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=/home/mydevice/vcpkg/scripts/buildsystems/vcpkg.cmake" Does anyone know why I’m getting this and how can I fix this? Source: Windows Que..

Read more

I’m writing program to retrieve price of items from steam community market using C++ , I’ve found that if I paste link: https://steamcommunity.com/market/priceoverview/?appid=730&currency=3&market_hash_name=StatTrak%E2%84%A2%20M4A1-S%20|%20Hyper%20Beast%20(Minimal%20Wear) into the browser it the information of items but when I’ve to access it using curl in C++ it return empty. How can I fetch this data into my C++ program? Source: ..

Read more

I’m unable to access a nlohmann::json document using a json_pointer built with a given path. This works using inline form, i mean: j["/here/the/path/to/the/json/node"_json_pointer] = "new value"; But when using the class json_pointer, it fails: std::string path = "/here/the/path/to/the/json/node"; auto j_ptr = nlohmann::json_pointer<std::string>(path); j[j_ptr] = "new value"; // THIS DOES NOT WORK: it creates a new ..

Read more

I used the python amalmagate file to compile the json library. Now when I run the c++ code, I keep getting this error. /usr/bin/ld: msort.cc:(.text+0x255): undefined reference to Json::Value::~Value()’ /usr/bin/ld: msort.cc:(.text+0x264): undefined reference to Json::Value::~Value()’ /usr/bin/ld: msort.cc:(.text+0x278): undefined reference to Json::Value::operator[](int)’ /usr/bin/ld: msort.cc:(.text+0x28c): undefined reference to Json::Value::Value(char const*)’ /usr/bin/ld: msort.cc:(.text+0x2a7): undefined reference to `Json::Value::get(char const*, ..

Read more

hello I would like to send by a socket a json and receive it with c++ and make from this the original message where the first byte is the message code the 4 bytes after it the length then the message itself I found how to retrieve the length but not how to get the ..

Read more