title: End of Json string identification
body: <p>Json string : &quot;{\n\t&quot;tag&quot;: &quot;Value&quot;,\n\t&quot;attributes&quot;: {\n\t\t&quot;rfid&quot;: &quot;2&quot;\n\t},\n\t&quot;dat&quot;: &quot;1&quot;\n}</p>
  <p>I am receiving the Json string from web server part by part i.e 8bytes at a time</p>
  <p>When i am trying to collect the data in one buffer with the below logic in C</p>
  <pre><code>static char *jsonString ;
  bool found_json = false;
  jsonString = (char*)malloc (1024, sizeof(char));
  
  while(data[i] != &quot;}&quot;)
  {
      found_json = true;
      for( i = 0; i&lt; len; i++)
      {
          memcpy(jsonString, data, len);
      }       
      
  }
  </code></pre>
  <p>can someday throw some light that how to detect end of the string of Json as there will be two closing Json object</p>