Scanning a HUGE JSON file for deserializable data in Scala
问题 I need to be able to process large JSON files, instantiating objects from deserializable sub-strings as we are iterating-over/streaming-in the file. For example: Let's say I can only deserialize into instances of the following: case class Data(val a: Int, val b: Int, val c: Int) and the expected JSON format is: { "foo": [ {"a": 0, "b": 0, "c": 0 }, {"a": 0, "b": 0, "c": 1 } ], "bar": [ {"a": 1, "b": 0, "c": 0 }, {"a": 1, "b": 0, "c": 1 } ], .... MANY ITEMS .... , "qux": [ {"a": 0, "b": 0, "c"