Hi Guillaume, thanks for the quick answer. Maybe it's possible to register a type adapter for Long.class inside DefaultGsonService to enforce "non-scientific" notation? Something like this:
Gson gson = new GsonBuilder()
.setDateFormat( AbstractJestClient.ELASTIC_SEARCH_DATE_FORMAT )
.serializeNulls()
.registerTypeAdapter(Long.class, ....)
.create();
But I am not exactly sure how to implement this adapter, but it shouldn't be complicated. |