diff options
author | Mathias <mathias@spray.cc> | 2011-09-06 11:55:22 +0200 |
---|---|---|
committer | Mathias <mathias@spray.cc> | 2011-09-06 11:55:22 +0200 |
commit | 14670623eff7d5394eadc41c56056f2a5a047a70 (patch) | |
tree | 86828d895ce38645eb6b2dc0f21ef7e3ff23334d /src/main/scala/cc/spray/json/JsValue.scala | |
parent | b93e81edfe49c677cce64e32fe49850204e14c97 (diff) | |
download | spray-json-14670623eff7d5394eadc41c56056f2a5a047a70.tar.gz spray-json-14670623eff7d5394eadc41c56056f2a5a047a70.tar.bz2 spray-json-14670623eff7d5394eadc41c56056f2a5a047a70.zip |
Improve JsonReader/JsonWriter lifting to JsonFormat
Diffstat (limited to 'src/main/scala/cc/spray/json/JsValue.scala')
-rw-r--r-- | src/main/scala/cc/spray/json/JsValue.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/cc/spray/json/JsValue.scala b/src/main/scala/cc/spray/json/JsValue.scala index edd7636..a02de0f 100644 --- a/src/main/scala/cc/spray/json/JsValue.scala +++ b/src/main/scala/cc/spray/json/JsValue.scala @@ -26,7 +26,7 @@ import collection.mutable.ListBuffer sealed trait JsValue { override def toString = CompactPrinter(this) def toString(printer: (JsValue => String)) = printer(this) - def fromJson[T :JsonReader]: T = jsonReader.read(this) + def fromJson[T :JsonReader]: T = jsonReader[T].read(this) } object JsValue { |