diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-03 14:35:59 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-05-03 14:35:59 +1200 |
commit | 7b58913edc7d1572ef66e16bd1c989a510455b6e (patch) | |
tree | 4cdc76ee53fe86ea357c711e967f4906c7deb275 /src/org/traccar/http/JsonConverter.java | |
parent | 18127a2dfc362ffd7de4110e013a10a9f894469b (diff) | |
download | trackermap-server-7b58913edc7d1572ef66e16bd1c989a510455b6e.tar.gz trackermap-server-7b58913edc7d1572ef66e16bd1c989a510455b6e.tar.bz2 trackermap-server-7b58913edc7d1572ef66e16bd1c989a510455b6e.zip |
Create base servlet class
Diffstat (limited to 'src/org/traccar/http/JsonConverter.java')
-rw-r--r-- | src/org/traccar/http/JsonConverter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/http/JsonConverter.java b/src/org/traccar/http/JsonConverter.java index 1b02e33d2..48fd934b7 100644 --- a/src/org/traccar/http/JsonConverter.java +++ b/src/org/traccar/http/JsonConverter.java @@ -82,7 +82,7 @@ public class JsonConverter { for (Method method : methods) { if (method.getName().startsWith("get") && method.getParameterTypes().length == 0) { - String name = method.getName().substring(3); + String name = Introspector.decapitalize(method.getName().substring(3)); try { if (method.getReturnType().equals(boolean.class)) { json.add(name, (Boolean) method.invoke(object)); |