These are chat archives for hseeberger/akka-http-json

1st
Nov 2016
Anton Kulaga
@antonkulaga
Nov 01 2016 11:52
What if (for debug purposes) I want to unmarshal json to tuples (originalJSONstring, mycaseclass) with circe, how will it look like in code?
Denis Mikhaylov
@notxcain
Nov 01 2016 16:06
@antonkulaga
implicit def debugTupleDecoder[A: Decoder]: Decoder[(Json, A)] = 
  Decoder[Json].flatMap(json => Decoder[A].map(a => (json, a)))
however that won’t be original string, that would be original json though