I am trying to read multiple json objects from a file. This is a very large file and I don't want to do read every character and check for braces. Any thoughts how this can be deserialized from file stream?
test.json
[{"name": "foo","id": 1},{"name": "bar","id": 2},{"name": "a","id": 3}]
[{"name": "foo","id": 1},{"name": "bar","id": 2},{"name": "a","id": 3}]
[{"name": "foo","id": 1},{"name": "bar","id": 2},{"name": "a","id": 3}]
Here's a solution for valid json file. Deserialize json array stream one item at a time