Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

Commit

Permalink
#132 Wrong ETH Contract Balance
Browse files Browse the repository at this point in the history
-- store numbers as plain string
  • Loading branch information
hleb-albau committed May 25, 2018
1 parent 34aaf30 commit 5a93cf5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions common/src/main/kotlin/fund/cyber/search/Serialization.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ import com.fasterxml.jackson.datatype.jdk8.Jdk8Module
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.registerKotlinModule

val jsonSerializer = ObjectMapper().registerKotlinModule()
.registerModule(Jdk8Module())
.registerModule(JavaTimeModule())
val jsonSerializer = ObjectMapper()
.enable(JsonGenerator.Feature.WRITE_NUMBERS_AS_STRINGS)
.enable(JsonGenerator.Feature.WRITE_BIGDECIMAL_AS_PLAIN)
.setSerializationInclusion(JsonInclude.Include.NON_NULL)
.enable(JsonGenerator.Feature.WRITE_NUMBERS_AS_STRINGS)!!
.registerKotlinModule()
.registerModule(Jdk8Module())
.registerModule(JavaTimeModule())!!


val jsonDeserializer = ObjectMapper().registerKotlinModule()
.registerModule(Jdk8Module())
Expand Down

0 comments on commit 5a93cf5

Please sign in to comment.