Closed xuwei-k closed 7 years ago
There's already project function under https://github.com/eed3si9n/sjson-new/blob/d0d11b9228e89492432e6e6708e0dc420e9d274f/core/src/main/scala/sjsonnew/AdditionalFormats.scala that can be used like this:
project
implicit val javaBigDecimalFormat: JF[JBigDecimal] = project[JBigDecimal, BigDecimal](BigDecimal.apply, _.bigDecimal)
Closing these in favor of https://github.com/eed3si9n/sjson-new/pull/58
There's already
project
function under https://github.com/eed3si9n/sjson-new/blob/d0d11b9228e89492432e6e6708e0dc420e9d274f/core/src/main/scala/sjsonnew/AdditionalFormats.scala that can be used like this: