How to deserialize a float value with a localized decimal separator with Jackson
问题 The input stream I am parsing with Jackson contains latitude and longitude values such as here: { "name": "product 23", "latitude": "52,48264", "longitude": "13,31822" } For some reason the server uses commas as the decimal separator which produces an InvalidFormatException . Since I cannot change the server output format I would like to teach Jackson's ObjectMapper to handle those cases. Here is the relevant code: public static Object getProducts(final String inputStream) { ObjectMapper