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.
This is what my file looks like:
[{“data1″:”data1”,….},{…},…]
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.
I have referred to this link, but I won’t get the position of “{” and “}” to copy my JSON data.
Is there a way to implement such a thing?
You can also use
And compile your object as you get the data from the server. No need for storing to a String or writing and reading from a file