I need to find a faster solution to parse a json file with 500KB. the structure is something like
{
"response": {
"code": 0,
"msg": "OK",
"searchparameter": {
"bikes": { … },
"cars": {
"a":{
values[{...}]
},
"b":{},
"c":{},
"d":{},
"e":{},
...
}
}
}
}
I tried gson.fromJson(jsontxt, Response.class)
, but it causes me like more than 5 mins to parse.. Is there any solutions that is suitable for me? How can I do JSONReader
by gson
in this case? and would it be helpful? any helps would be appreciated. thanks a lot!!