Cannot deserialize a tuple
问题 If I do the following: import org.json4s.DefaultFormats import org.json4s.jackson.Serialization.{read, write} implicit val formats = DefaultFormats val tuple = (5.0, 5.0) val json = write(tuple) println("Write: " + json) println("Read: " + read[(Double, Double)](json)) I get the following output: Write: {"_1$mcD$sp":5.0,"_2$mcD$sp":5.0} Exception in thread "main" org.json4s.package$MappingException: No usable value for _1 Did not find value which can be converted into double at org.json4s