FromScala

object FromScala
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[In](scala: In)(implicit from: From[In]): FromInput

Pairs the scala data type with a From capable of pushing the data through a Visitor.

Pairs the scala data type with a From capable of pushing the data through a Visitor.

==Examples==

  • FromScala(Seq(1,2,3)).transform(ToJson.string) // [1,2,3]
  • FromScala(pony).transform(ToJson.string) // {"name":"Twilight"}