I am using Scala 2.12 with circe version 0.14.1. I am converting a JSON into corresponding case class as below:
case class Document(curr: String, value: Double)
val json = s"""{"Document":{"curr":"USD","value":40000000.01}}"""
import io.circe.generic.auto._
io.circe.parser.decode[Document](json)
The converted case class is below:
Document(USD,4.000000001E7)
I do not want the Double value to change into a Exponential representation. I need it to remain as Double unchanged as
40000000.01
.