Reputation: 6197
This is a continue question by here. Now the problem is, there is no line break in each line. All data stick together, how can I do that? Like this:
{"bla":"bla"}{"bla":"bla"}{"bla":"bla"}{"bla":"bla"}{"bla":"bla"}{"bla":"bla"}.....
Thanks!
Upvotes: 1
Views: 4118
Reputation: 15685
Read in the JSON file as a single String and replace "}{" with "}\n{". Pass the resulting String into a StringReader and you can read it line by line.
Upvotes: 1