How to search for contents of file and read only a part of File
<p>I am using JSON-RPC. When i send request to server i get a response from server which is almost 2MB long. There is no new line character in the data. As we know, it is not possible to store all the 2MB data inside string, i had to write the data to a file. </p>

<p>This is what my file looks like:</p>

<blockquote>
  <p>[{"data1":"data1",....},{...},...]</p>
</blockquote>

<p>I want to read the data part-by-part, like get the string between "{" and "}", so that i get the exact contents of 1 JSON Object, after which i can parse the data.</p>

<p>I have referred to this <a href="http://stackoverflow.com/a/3635147/928861">link</a>, but I won't get the position of "{" and "}" to copy my JSON data. </p>

<p>Is there a way to implement such a thing?</p>
