Last active
November 1, 2018 13:22
-
-
Save novakov-alexey-zz/c4bc4f4f1d6046209d6b41f0cea53e7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.time.LocalDate | |
import java.time.format.DateTimeFormatter | |
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport | |
import spray.json.{DefaultJsonProtocol, DeserializationException, JsString, JsValue, JsonFormat, RootJsonFormat} | |
trait JsonCodes extends SprayJsonSupport with DefaultJsonProtocol { | |
implicit val trip: RootJsonFormat[Trip] = jsonFormat7(Trip) | |
implicit val trips: RootJsonFormat[Trips] = jsonFormat1(Trips) | |
implicit val commandResult: RootJsonFormat[CommandResult] = jsonFormat1(CommandResult) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment