Instead of using TurnJsonIntoHttp in each place:
class MyEndpoint extends Endpoint[HttpRequest, HttpResponse] {
def route = {
case Method.Get -> Root / "items" ⇒
List() ! TurnJsonIntoHttp[List[MyObj]]
case Method.Get -> Root / "item" / Long(id) ⇒
GetDetail(id) ! TurnJsonIntoHttp[MyObj]