diff options
author | Eric J. Christeson <Eric.J.Christeson@gmail.com> | 2013-08-15 10:25:02 -0500 |
---|---|---|
committer | Eric J. Christeson <Eric.J.Christeson@gmail.com> | 2013-08-15 10:25:02 -0500 |
commit | 3cd8cdc93aa1ad69703cafb0af8b801f1c93ecce (patch) | |
tree | 32c4063874579bfa717df5360568625a641087c7 /src/main/scala/spray | |
parent | e35d195b46a006f57121caaaabda1435f0cd4ef8 (diff) | |
download | spray-json-3cd8cdc93aa1ad69703cafb0af8b801f1c93ecce.tar.gz spray-json-3cd8cdc93aa1ad69703cafb0af8b801f1c93ecce.tar.bz2 spray-json-3cd8cdc93aa1ad69703cafb0af8b801f1c93ecce.zip |
Fix for issue #66
Diffstat (limited to 'src/main/scala/spray')
-rw-r--r-- | src/main/scala/spray/json/StandardFormats.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/spray/json/StandardFormats.scala b/src/main/scala/spray/json/StandardFormats.scala index 6a9712a..d71dcae 100644 --- a/src/main/scala/spray/json/StandardFormats.scala +++ b/src/main/scala/spray/json/StandardFormats.scala @@ -106,7 +106,7 @@ trait StandardFormats { implicit def tuple7Format[A :JF, B :JF, C :JF, D :JF, E :JF, F: JF, G: JF] = { new RootJsonFormat[(A, B, C, D, E, F, G)] { - def write(t: (A, B, C, D, E, F, G)) = JsArray(t._1.toJson, t._2.toJson, t._3.toJson, t._4.toJson, t._5.toJson, t._6.toJson, t._6.toJson) + def write(t: (A, B, C, D, E, F, G)) = JsArray(t._1.toJson, t._2.toJson, t._3.toJson, t._4.toJson, t._5.toJson, t._6.toJson, t._7.toJson) def read(value: JsValue) = value match { case JsArray(a :: b :: c :: d :: e :: f :: g :: Nil) => (a.convertTo[A], b.convertTo[B], c.convertTo[C], d.convertTo[D], e.convertTo[E], f.convertTo[F], g.convertTo[G]) @@ -115,4 +115,4 @@ trait StandardFormats { } } -}
\ No newline at end of file +} |