Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 352 Bytes
package net.liftweb.json.scalaz
import scalaz._
import Scalaz._
import JsonScalaz._
import net.liftweb.json._
import org.specs2.mutable.Specification
object TupleExample extends Specification {
"Parse tuple from List" in {
val json = JsonParser.parse(""" [1,2,3] """)
fromJSON[Tuple3[Int, Int, Int]](json) mustEqual Success(1, 2, 3)
Something went wrong with that request. Please try again.