How to deserialize a float value with a localized decimal separator?

85 views
Skip to first unread message

Tobias Preuss

unread,
Nov 5, 2014, 8:40:27 AM11/5/14
to jackso...@googlegroups.com
Hello.

I trying to deserialize a .json file which contains float values (GPS coordinates).
For some reason the server outputs the value with a German locale where a comma is used as the decimal separator.

{
    "name": "product 23",
    "latitude": "52,48264",
    "longitude": "13,31822"
}

I posted this problem before: http://stackoverflow.com/questions/26725278/how-to-deserialize-a-float-value-with-a-localized-decimal-separator-with-jackson
How can I teach Jackson to deal with different locale settings?

Best regards, Tobias
Reply all
Reply to author
Forward
0 new messages