title: Extract characters in between Special characters using stringstream in C++
body: <p>I am getting a JSON <code>{&quot;Success&quot;:true,&quot;Error&quot;:null,&quot;Result&quot;:null}</code> object from an API and im using String stream to extract the data i need. This object is been passed as <code>temp</code> in the code below</p>
  <p>I know there are libraries available to handel JSON but i want to parse it without using libraries.</p>
  <p>i had refered <a href="https://stackoverflow.com/questions/10291882/how-to-deserialize-json-string-in-c-without-using-any-third-party-library">How to deserialize json string in c++ without using any third party library</a>. It works well untill i come across special characters.</p>
  <pre><code>                std::stringstream ss(temp); //Using Json response stream
                  const unsigned int BUFFERSIZE = 1087;
                  //temporary buffer
                  char buffer[BUFFERSIZE];
                  memset(buffer, 0, BUFFERSIZE * sizeof(char));
                  std::pair&lt;std::string, std::string&gt; returnValue;
                  while (ss.peek() != '{')
                  {
                      ss.ignore();
                  }
                  while (ss.peek() != '}' &amp;&amp; value == &quot;&quot;)
                  {
                      ss.get(buffer, BUFFERSIZE, '\&quot;');
                      ss.ignore();
                      ss.get(buffer, BUFFERSIZE, '\&quot;');
                      ss.ignore();
                      returnValue.first = buffer;
                      ss.get(buffer, BUFFERSIZE, ':');
                      ss.ignore();
                      ss.get(buffer, BUFFERSIZE, ',');
                      ss.ignore();
                      returnValue.second = buffer;
                      cout &lt;&lt; returnValue.second;
                      if (returnValue.first == &quot;Success&quot;) {
                          value = buffer;
                      }
                  }
  </code></pre>
  <p>I am trying to extract the value <code>true</code> which is in between <code>&quot;:&quot;</code> and <code>&quot;,&quot;</code> but insted im getting an empty string.</p>
  <p>Am i missing something.?</p>