title: C lib to read and parse JSON directly from file stream
body: <p>I have seen a number of libs for parsing JSON in C but none of them can read and parse directly from file streams. The problem with all such libs e.g Yajl, cjson is that if the json document in the file is huge then you have to first read all of that into a memory buffer and then run the APIs provided by these libs to parse it. </p>
  
  <p>There APIs often look like</p>
  
  <pre><code>cJSON *cJSON_Parse(const char *value)
  </code></pre>
  
  <p>which take a char* to a buffer.</p>
  
  <p>I want to avoid that since my files can be very large and i donot know the sizes of the files in advance. Moreover, these libs maintain reference to objects,arrays in the actual buffer to retrieve the values so i cannot free the original buffer.</p>
  
  <p>Is there a JSON parsing lib that can read and parse directly from file streams?</p>