I have 100 millions of records in JSON
file, need an efficient and fastest method to read the array of arrays from a JSON
file in java
.
JSON
file look like:
[["XYZ",...,"ABC"],["XYZ",...,"ABC"],["XYZ",...,"ABC"],...,["XYZ",...,"ABC"],
["XYZ",...,"ABC"],["XYZ",...,"ABC"],["XYZ",...,"ABC"],...,["XYZ",...,"ABC"],
...
...
...
,["XYZ",...,"ABC"],["XYZ",...,"ABC"],["XYZ",...,"ABC"]]
I want to read this JSON
file line by line as:
read first:
["XYZ",...,"ABC"]
then:
["XYZ",...,"ABC"]
so on:'
...
...
...
["XYZ",...,"ABC"]
How do I read a JSON
file like this, I know it does not completely look like a JSON
file but I need to read this file in this format which is saved as.JSON