Serialization / Binary format

import com.fasterxml.jackson.databind.ObjectMapper

val dic = mapOf(
    "one" to 1"two" to 2
)

val mapper = ObjectMapper()
val dataB = mapper.writeValueAsBytes(dic)

val dic2 = mapper.readValue(dataB,
    LinkedHashMap::class.java)
//nums2 is [2 3 5 7 11]

println("dic2 is $dic2")