I am using Google GSON. I have a JSON data file, for example:
{"NAME":"Joe",
"AGE":"18",
"DATA":[0,0,0,0,0,...]}
Where DATAis a very, very large array.
I would like to read the JSON file, but skip certain properties from the analysis. In the above case, I would like to skip reading DATAand therefore get JsonObjectone that contains only NAMEand AGE.
I have tens of thousands of these files, and I need to read the fields NAMEand AGEeach of them. It’s so clear that I don’t need to parse DATAwhat I consider a huge waste of resources, given the number of files I need to process.
Can this be done using Google GSON?
source
share