diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-03 12:09:00 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-03 12:09:00 +1200 |
commit | 18127a2dfc362ffd7de4110e013a10a9f894469b (patch) | |
tree | 24ced00567acbc751985b71ffd99ce067213a34d /src/org/traccar/http/AsyncServlet.java | |
parent | 427113e0aabf1b8ab54288263c3e809f292a5a05 (diff) | |
download | trackermap-server-18127a2dfc362ffd7de4110e013a10a9f894469b.tar.gz trackermap-server-18127a2dfc362ffd7de4110e013a10a9f894469b.tar.bz2 trackermap-server-18127a2dfc362ffd7de4110e013a10a9f894469b.zip |
Implmenet reflection json conversion
Diffstat (limited to 'src/org/traccar/http/AsyncServlet.java')
-rw-r--r-- | src/org/traccar/http/AsyncServlet.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/http/AsyncServlet.java b/src/org/traccar/http/AsyncServlet.java index c66126667..927e93c78 100644 --- a/src/org/traccar/http/AsyncServlet.java +++ b/src/org/traccar/http/AsyncServlet.java @@ -20,7 +20,6 @@ import org.jboss.netty.util.TimerTask; import org.traccar.Context; import org.traccar.GlobalTimer; import org.traccar.database.DataCache; -import org.traccar.database.ObjectConverter; import org.traccar.helper.Log; import org.traccar.model.Position; @@ -160,7 +159,7 @@ public class AsyncServlet extends HttpServlet { JsonObjectBuilder result = Json.createObjectBuilder(); result.add("success", true); - result.add("data", ObjectConverter.arrayToJson(positions.values())); + result.add("data", JsonConverter.arrayToJson(positions.values())); positions.clear(); try { |