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

7th
Aug 2018
Nishant Kelkar
@kelkarn
Aug 07 2018 06:00
Hello
I wanted to know how I can serialize a collection of my case class within a post entity of my akka-http server.
I want it to take in a post request with a body, and convert the body into my case class model.
I tried using RootJsonFormat but I keep getting: The request content was malformed:
In my Postman2 app.
Nishant Kelkar
@kelkarn
Aug 07 2018 06:24
Ugh, this is quite frustrating.
Andriy Plokhotnyuk
@plokhotnyuk
Aug 07 2018 12:04
@kelkarn have you tried integration with jsoniter-scala? in most cases just need to call make macro and a codec for whole nested structure of collections and case classes will be generated: https://github.com/plokhotnyuk/jsoniter-scala/blob/master/jsoniter-scala-benchmark/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/macros/JsoniterCodecs.scala#L63