eed3si9n / sjson-new

a typeclass based JSON codec that's backend independent
Apache License 2.0
36 stars 19 forks source link

add JsonReader#map #49

Closed xuwei-k closed 7 years ago

eed3si9n commented 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:

  implicit val javaBigDecimalFormat: JF[JBigDecimal] =
    project[JBigDecimal, BigDecimal](BigDecimal.apply, _.bigDecimal)
eed3si9n commented 7 years ago

Closing these in favor of https://github.com/eed3si9n/sjson-new/pull/58