<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to Project json-cpp</title><link href="https://sourceforge.net/p/jsoncpp/" rel="alternate"/><link href="https://sourceforge.net/p/jsoncpp/feed.atom" rel="self"/><id>https://sourceforge.net/p/jsoncpp/</id><updated>2023-05-05T08:37:29.468000Z</updated><subtitle>Recent changes to Project json-cpp</subtitle><entry><title>Not able to parse large json using json cpp library 1.9.5 version</title><link href="https://sourceforge.net/p/jsoncpp/discussion/483465/thread/b268caa605/?limit=25#0d7f" rel="alternate"/><published>2023-05-05T08:37:29.468000Z</published><updated>2023-05-05T08:37:29.468000Z</updated><author><name>Manikanta</name><uri>https://sourceforge.net/u/manikan/</uri></author><id>https://sourceforge.neta2edee18d8abeef291b198c8f3f7b2f42ae0dedc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;this is below code snippet we are using to parse json&lt;br/&gt;
    auto str = reinterpret_cast&amp;lt;const char*=""&amp;gt;(data);&lt;br/&gt;
    Json::CharReaderBuilder builder;&lt;br/&gt;
    std::unique_ptr&amp;lt;json::charreader&amp;gt; json_reader(builder.newCharReader());&lt;br/&gt;
    std::string errorMessage;&lt;br/&gt;
    return json_reader-&amp;gt;parse(str, str + length, msg_out, &amp;amp;errorMessage);&amp;lt;/json::charreader&amp;gt;&amp;lt;/const&amp;gt;&lt;/p&gt;
&lt;p&gt;Not able to parse large json using json cpp library 1.9.5, for a small json parse function does not return false, but for large json its return false.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Json get() method crash</title><link href="https://sourceforge.net/p/jsoncpp/bugs/73/" rel="alternate"/><published>2018-07-23T16:22:10.924000Z</published><updated>2018-07-23T16:22:10.924000Z</updated><author><name>sai</name><uri>https://sourceforge.net/u/sairockzz453/</uri></author><id>https://sourceforge.net5b73deb39d9a6a6dca55b0962760968b69155f6d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My process is getting crashed for get() method call of Json::Value.&lt;br/&gt;
Providing the backtrace of the crash.&lt;/p&gt;
&lt;h1 id="0-0x780c3558-in-std_treewzxhzdk1-stdallocatorwzxhzdk2-false-_lboundjsonvalueczstring-const"&gt;0  0x780c3558 in std::_Tree&amp;lt;std::_Tmap_traits&amp;lt;Json::Value::CZString, Json::Value,="" std::less&amp;lt;Json::Value::CZString=""&amp;gt;, std::allocator&amp;lt;std::pair&amp;lt;Json::Value::CZString const,="" Json::Value=""&amp;gt; &amp;gt;, false&amp;gt; &amp;gt;::_Lbound(Json::Value::CZString const&amp;amp;)&lt;/h1&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;() from libjsoncpp.so.1
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;No symbol table info available.&lt;/p&gt;
&lt;h1 id="1-0x780c3586-in-std_treewzxhzdk3-stdallocatorwzxhzdk4-false-findjsonvalueczstring-const"&gt;1  0x780c3586 in std::_Tree&amp;lt;std::_Tmap_traits&amp;lt;Json::Value::CZString, Json::Value,="" std::less&amp;lt;Json::Value::CZString=""&amp;gt;, std::allocator&amp;lt;std::pair&amp;lt;Json::Value::CZString const,="" Json::Value=""&amp;gt; &amp;gt;, false&amp;gt; &amp;gt;::find(Json::Value::CZString const&amp;amp;) ()&lt;/h1&gt;
&lt;p&gt;from libjsoncpp.so.1&lt;br/&gt;
No symbol table info available.&lt;/p&gt;
&lt;h1 id="2-0x780c202e-in-jsonvalueoperator-const-from-libjsoncppso1"&gt;2  0x780c202e in Json::Value::operator&lt;a class="" href="../char%20const*"&gt;&lt;/a&gt; const () from libjsoncpp.so.1&lt;/h1&gt;
&lt;p&gt;No symbol table info available.&lt;/p&gt;
&lt;h1 id="3-0x780c3118-in-jsonvaluegetchar-const-jsonvalue-const-const-from-libjsoncppso1"&gt;3  0x780c3118 in Json::Value::get(char const*, Json::Value const&amp;amp;) const () from libjsoncpp.so.1&lt;/h1&gt;
&lt;p&gt;No symbol table info available.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem using Amalgamated Source</title><link href="https://sourceforge.net/p/jsoncpp/discussion/483465/thread/39941798/?limit=25#6ca6" rel="alternate"/><published>2018-06-07T15:27:55.800000Z</published><updated>2018-06-07T15:27:55.800000Z</updated><author><name>Noah Keen</name><uri>https://sourceforge.net/u/jamescolburn/</uri></author><id>https://sourceforge.net7f86e2f007297812f5bf0bf195b7f426291a8d1b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I cloned the jsonpp repo and followed the instructions to generate the amalgamated source here: &lt;a href="https://github.com/open-source-parsers/jsoncpp/wiki/Amalgamated" rel="nofollow"&gt;https://github.com/open-source-parsers/jsoncpp/wiki/Amalgamated&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;All files generated as expected. When I then include the files in my project I get an error compiling the generated  jsoncpp.cpp : &lt;/p&gt;
&lt;p&gt;"fatal error: json/config.h: No such file or directory" &lt;/p&gt;
&lt;p&gt;This is making sense as json/config.h was not one of the two headers generated by the amalgamated steps.  But obvioulsy I am doing something wrong. &lt;/p&gt;
&lt;p&gt;Are there additional headers or shared libraries I need to be including other than those generated by the amalgamation step?&lt;br/&gt;
How should I be including the generated files? I am putting the two headers (json.h, json-forwards.h) in my include directory ( eg : ./include/json/json.h) and I have jsoncpp.cpp in the top level of my src.&lt;/p&gt;
&lt;p&gt;Thanks for your time.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to integrate JSONCPP (DLL) into our local projects in Windows VS2015</title><link href="https://sourceforge.net/p/jsoncpp/discussion/483465/thread/cae5db3d/?limit=25#affe" rel="alternate"/><published>2018-05-28T07:39:20.291000Z</published><updated>2018-05-28T07:39:20.291000Z</updated><author><name>Anupkumar</name><uri>https://sourceforge.net/u/anupkumargm/</uri></author><id>https://sourceforge.net37c4b7e6eac59a4a852977a7151e9a0ca0c09c6b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I want to intergrate JSON CPP into my project.&lt;br/&gt;
Steps  followed is :&lt;br/&gt;
1.Download the jsoncpp-master project this from the site.&lt;br/&gt;
2.Complied the lib_json project and generated the library.&lt;br/&gt;
3.Included the JsonCpp include folder in my local project and added the library in my project.&lt;br/&gt;
4.Compliation is successful, but when i run the program with some simple json data,  reader.parse is returning true but the Json::Value member is showing size 1 even thought the JSON is haveing more than one node.&lt;br/&gt;
Is the above steps are correct??? Please let me know&lt;br/&gt;
I am not sure why the parsing is not happening,Any help please ?????&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to insert or create a new node?</title><link href="https://sourceforge.net/p/jsoncpp/discussion/483465/thread/9f6dd300/" rel="alternate"/><published>2015-03-31T18:16:18.951000Z</published><updated>2015-03-31T18:16:18.951000Z</updated><author><name>Christopher Dunn</name><uri>https://sourceforge.net/u/christopherdunn/</uri></author><id>https://sourceforge.neteab2430e988da56ace179da4e5be6a36345285b9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Please post questions to GitHub, jsoncpp.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to insert or create a new node?</title><link href="https://sourceforge.net/p/jsoncpp/discussion/483465/thread/9f6dd300/" rel="alternate"/><published>2015-03-30T12:24:30.152000Z</published><updated>2015-03-30T12:24:30.152000Z</updated><author><name>Cédric</name><uri>https://sourceforge.net/u/cpillonel/</uri></author><id>https://sourceforge.netaa7b7acd1fe2cebf6ffe1a3433827b76256435c4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;After parsing a JSON file, how can I insert a new child node?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#19 toStyledString produces different output than operator&lt;&lt;</title><link href="https://sourceforge.net/p/jsoncpp/bugs/19/?limit=25#8563" rel="alternate"/><published>2015-03-06T19:01:57.764000Z</published><updated>2015-03-06T19:01:57.764000Z</updated><author><name>Christopher Dunn</name><uri>https://sourceforge.net/u/christopherdunn/</uri></author><id>https://sourceforge.net7ab13d6f26989ae5a54b1913a420360d43fab72d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed-wont-fix&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; 0.5.0&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#19 toStyledString produces different output than operator&lt;&lt;</title><link href="https://sourceforge.net/p/jsoncpp/bugs/19/?limit=25#da5c" rel="alternate"/><published>2015-03-06T19:01:40.683000Z</published><updated>2015-03-06T19:01:40.683000Z</updated><author><name>Christopher Dunn</name><uri>https://sourceforge.net/u/christopherdunn/</uri></author><id>https://sourceforge.netc01354c631f939aae94c63eeec5f4b4bb19672b7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I think it's the same now at: &lt;a href="https://github.com/open-source-parsers/jsoncpp" rel="nofollow"&gt;https://github.com/open-source-parsers/jsoncpp/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But we make no guarantees for &lt;code&gt;toStyledString()&lt;/code&gt;. To control the format, use &lt;code&gt;StreamWriterBuilder&lt;/code&gt;.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#20 asString() of intValue throws exception</title><link href="https://sourceforge.net/p/jsoncpp/bugs/20/?limit=25#76a5" rel="alternate"/><published>2015-03-06T18:48:01.354000Z</published><updated>2015-03-06T18:48:01.354000Z</updated><author><name>Christopher Dunn</name><uri>https://sourceforge.net/u/christopherdunn/</uri></author><id>https://sourceforge.netded61a8ca8868338e41d7ec0d655293f2bd145e9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;Description has changed:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Diff:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="gd"&gt;--- old&lt;/span&gt;
&lt;span class="gi"&gt;+++ new&lt;/span&gt;
&lt;span class="gu"&gt;@@ -1,4 +1,3 @@&lt;/span&gt;
&lt;span class="gd"&gt;-&lt;/span&gt;
 I had expected just about everything should be able to retrieve as String -- including objects and arrays \(feature suggestion\).

 reader.parse\("\{\"intvalue\":1\}",root\);
&lt;/pre&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed-wont-fix&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; 0.5.0&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#20 asString() of intValue throws exception</title><link href="https://sourceforge.net/p/jsoncpp/bugs/20/?limit=25#69c9" rel="alternate"/><published>2015-03-06T18:47:46.585000Z</published><updated>2015-03-06T18:47:46.585000Z</updated><author><name>Christopher Dunn</name><uri>https://sourceforge.net/u/christopherdunn/</uri></author><id>https://sourceforge.net161d9ae8fb4bddc1e1aa17c3a945b171a13fc5a5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Objects and arrays are &lt;em&gt;serializable&lt;/em&gt; to strings, but not strictly &lt;em&gt;convertible&lt;/em&gt;. Maybe it's an unfair distinction, but since serialization has so many special cases, we're stuck with this for now.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>