aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlad <vlad@driver.xyz>2017-02-02 21:50:10 -0500
committervlad <vlad@driver.xyz>2017-02-02 21:50:10 -0500
commitd40802300cb84886ef371d31841f0831051a5117 (patch)
tree131edc98cbd1d694449578b50a9d5c5a3e0891fd
parente1ace181e97506130810eb1e1e19c720bf4d490c (diff)
downloaddriver-core-0.10.4.tar.gz
driver-core-0.10.4.tar.bz2
driver-core-0.10.4.zip
Made date json format — root to be able to pass it in HTTP bodyv0.10.4
-rw-r--r--src/main/scala/xyz/driver/core/json.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/xyz/driver/core/json.scala b/src/main/scala/xyz/driver/core/json.scala
index 3c0d8d4..b23a8e4 100644
--- a/src/main/scala/xyz/driver/core/json.scala
+++ b/src/main/scala/xyz/driver/core/json.scala
@@ -70,7 +70,7 @@ object json {
}
}
- implicit val dateFormat = new JsonFormat[Date] {
+ implicit val dateFormat = new RootJsonFormat[Date] {
def write(date: Date) = JsString(date.toString)
def read(value: JsValue): Date = value match {
case JsString(dateString) =>