JSON handling in akka-http.
Marshaller and Unmarshaller
- JSON Support (
- Marshalling & Unmarshalling (in routing DSL)
Custom JSON (un)marshaller for akka-http by using 3rd party libraries. The community seems to be very active.
akka-http + Jackson
akka-http + circe
Either[Error, A] but akka-http requires
_.fold(Future.failed, Future.successful) can be a solution to convert from
Either[Throwable, A] to
Documents (in Japanese)
- Akka-HTTPを型で縛る (Bind Akka-HTTP by types)
- Akka HTTPでJacksonを使ってJSON変換をする