Commit e5682fa8a5ca31b006538cbea007303d5a116584
1 parent
24c99f6c
update...
Showing
1 changed file
with
1 additions
and
5 deletions
src/main/java/com/bsth/data/gpsdata/thread/GpsDataLoaderThread.java
| @@ -172,11 +172,7 @@ public class GpsDataLoaderThread extends Thread { | @@ -172,11 +172,7 @@ public class GpsDataLoaderThread extends Thread { | ||
| 172 | while ((str = br.readLine()) != null) | 172 | while ((str = br.readLine()) != null) |
| 173 | stringBuffer.append(str); | 173 | stringBuffer.append(str); |
| 174 | 174 | ||
| 175 | - JSONObject jsonObj = JSON.parseObject(stringBuffer.toString()); | ||
| 176 | - | ||
| 177 | - if (jsonObj != null) | ||
| 178 | - list = JSON.parseArray(jsonObj.getString("data"), GpsEntity.class); | ||
| 179 | - | 175 | + list = JSON.parseArray(stringBuffer.toString(), GpsEntity.class); |
| 180 | String nbbm; | 176 | String nbbm; |
| 181 | for (GpsEntity gps : list) { | 177 | for (GpsEntity gps : list) { |
| 182 | 178 |