diff options
author | Mathias <mathias@spray.cc> | 2012-10-15 12:24:58 +0200 |
---|---|---|
committer | Mathias <mathias@spray.cc> | 2012-10-15 12:27:02 +0200 |
commit | 6738e705028b9c8ca2a27536f8adfad227df9f36 (patch) | |
tree | 1ac2dc8625cb51c19a59ea62c5659cecfe7ecf0b /src/main/scala/spray/json/AdditionalFormats.scala | |
parent | 72987d6fa81c944470a1b16c1fa9a727c82c459b (diff) | |
download | spray-json-6738e705028b9c8ca2a27536f8adfad227df9f36.tar.gz spray-json-6738e705028b9c8ca2a27536f8adfad227df9f36.tar.bz2 spray-json-6738e705028b9c8ca2a27536f8adfad227df9f36.zip |
Prepare for release 1.2.1v1.2.1
Diffstat (limited to 'src/main/scala/spray/json/AdditionalFormats.scala')
-rw-r--r-- | src/main/scala/spray/json/AdditionalFormats.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/spray/json/AdditionalFormats.scala b/src/main/scala/spray/json/AdditionalFormats.scala index 20fdc74..cc52f8d 100644 --- a/src/main/scala/spray/json/AdditionalFormats.scala +++ b/src/main/scala/spray/json/AdditionalFormats.scala @@ -94,7 +94,7 @@ trait AdditionalFormats { def safeReader[A :JsonReader] = new JsonReader[Either[Exception, A]] { def read(json: JsValue) = { try { - Right(json.convertTo) + Right(json.convertTo[A]) } catch { case e: Exception => Left(e) } |