jsoncpp
jsoncpp copied to clipboard
A C++ library for interacting with JSON.
**Describe the bug** We are getting name corruption on output **To Reproduce** Steps to reproduce the behavior: ``` Json::Value root; root["os_description"] = Json::Value(1); root["os_version"] = Json::Value(1); std::cout
Hi! I'm using latest jsoncpp from master, on a Windows 10 dev box with Visual Studio 2019 Build has been configured with CMake : ``` shell cmake -B ~/build/cpp/www-git/jsoncpp -D...
Take a subnormal `double` such as `3.2114e-312`. jsoncpp has no trouble converting this to a `string` but then on the other side the used `istream` sets a failbit. Which is...
**Describe the bug** The GCC 12.2.0 compiler warns that a variable may be uninitialized when building JSONCPP, specifically here (v): ``` case tokenNull: { Value v; currentValue().swapPayload(v); currentValue().setOffsetStart(token.start_ - begin_);...
**Describe the bug** I have installed by vcpk method and got "jsoncpp:x64-linux is already installed" as response; but when I compile the example it still exhibits error: cannot find -ljsoncpp:...
**Describe the bug** I'm getting a "Warning: corrupt .drectve at end of def file" error at compilation time when trying to build with CMake. I'm using a fresh install of...
**Describe the bug** eventually crash as: *** Error in `./app': corrupted size vs. prev_size: 0x00007fd93c0049e0 *** ======= Backtrace: ========= /usr/lib64/libc.so.6(+0x80ba7)[0x7fd94519fba7] /usr/lib64/libc.so.6(+0x8248b)[0x7fd9451a148b] /usr/lib64/libc.so.6(__libc_malloc+0x4c)[0x7fd9451a46fc] /usr/lib64/libstdc++.so.6(_Znwm+0x1d)[0x7fd945a6418d] /usr/local/lib64/libjsoncpp.so.24(_ZNSt8_Rb_treeIN4Json5Value8CZStringESt4pairIKS2_S1_ESt10_Select1stIS5_ESt4lessIS2_ESaIS5_EE7_M_copyINSB_11_Alloc_nodeEEEPSt13_Rb_tree_nodeIS5_EPKSF_PSt18_Rb_tree_node_baseRT_+0x87)[0x7fd9468ce6f7] /usr/local/lib64/libjsoncpp.so.24(_ZNSt8_Rb_treeIN4Json5Value8CZStringESt4pairIKS2_S1_ESt10_Select1stIS5_ESt4lessIS2_ESaIS5_EE7_M_copyINSB_11_Alloc_nodeEEEPSt13_Rb_tree_nodeIS5_EPKSF_PSt18_Rb_tree_node_baseRT_+0x120)[0x7fd9468ce790] /usr/local/lib64/libjsoncpp.so.24(_ZNSt8_Rb_treeIN4Json5Value8CZStringESt4pairIKS2_S1_ESt10_Select1stIS5_ESt4lessIS2_ESaIS5_EE7_M_copyINSB_11_Alloc_nodeEEEPSt13_Rb_tree_nodeIS5_EPKSF_PSt18_Rb_tree_node_baseRT_+0x100)[0x7fd9468ce770] /usr/local/lib64/libjsoncpp.so.24(_ZNSt8_Rb_treeIN4Json5Value8CZStringESt4pairIKS2_S1_ESt10_Select1stIS5_ESt4lessIS2_ESaIS5_EE7_M_copyINSB_11_Alloc_nodeEEEPSt13_Rb_tree_nodeIS5_EPKSF_PSt18_Rb_tree_node_baseRT_+0x120)[0x7fd9468ce790] /usr/local/lib64/libjsoncpp.so.24(_ZN4Json5Value10dupPayloadERKS0_+0xef)[0x7fd9468cbf4f] /usr/local/lib64/libjsoncpp.so.24(_ZN4Json5ValueC1ERKS0_+0x19)[0x7fd9468cbfd9] /usr/local/lib64/libjsoncpp.so.24(_ZNSt8_Rb_treeIN4Json5Value8CZStringESt4pairIKS2_S1_ESt10_Select1stIS5_ESt4lessIS2_ESaIS5_EE7_M_copyINSB_11_Alloc_nodeEEEPSt13_Rb_tree_nodeIS5_EPKSF_PSt18_Rb_tree_node_baseRT_+0x47)[0x7fd9468ce6b7]...
To use json files in a context where human readability makes sense, order of the fields insertion can make sense. As jsoncpp is sorting them alphabetically, it becomes hard to...
Description The current implementation of Json::CharReaderBuilder.newCharReader(), allocates memory, while there is no one to release it, this issue causes a leak because when we upgraded to the new version, we...
undefined reference to `Json::CharReaderBuilder::operator[](std::__cxx11::basic_string const&)' undefined reference to `Json::Value::operator bool() const' undefined reference to `Json::Value::operator bool() const' undefined reference to `Json::Value::operator bool() const' I use the lateset master.