title: How can I stream JSON from a file?
body: <p>I will have a possibly very large JSON file and I want to stream from it instead of load it all into memory.  Based on the following statement (I added the emphasis) from <a href="http://search.cpan.org/dist/JSON-XS/XS.pm#INCREMENTAL_PARSING" rel="noreferrer"><code>JSON::XS</code></a>, I believe it won't suit my needs.  Is there a Perl 5 JSON module that will stream the results from the disk?</p>
  
  <blockquote>
    <p>In some cases, there is the need for incremental parsing of JSON texts. While this module <strong>always has to keep both JSON text and resulting Perl data structure in memory at one time</strong>, it does allow you to parse a JSON stream incrementally. It does so by accumulating text until it has a full JSON object, which it then can decode. This process is similar to using decode_prefix to see if a full JSON object is available, but is much more efficient (and can be implemented with a minimum of method calls).</p>
  </blockquote>
  
  <p>To clarify, the JSON will contain an array of objects.  I want to read one object at a time from the file.</p>