spray/spray-json — Issue #11: error: Cannot find JsonWriter or JsonFormat type class for List[Int
Author: ctataryn
Created: 2011-11-18 23:44:34+00:00
State: open

Hi there, was trying to follow the example in the README however I'm running into a problem, checkout my REPL session:

$ scala -cp ~/.ivy2/cache/cc.spray.json/spray-json_2.9.1/jars/spray-json_2.9.1-1.0.1.jar:~/.ivy2/cache/org.parboiled/parboiled-scala/jars/parboiled-scala-1.0.2.jar:~/.ivy2/cache/org.parboiled/parboiled-core/jars/parboiled-core-1.0.2.jar
Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_26).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import cc.spray.json._
import cc.spray.json._

scala> List(1,2,3).toJson
**:11: error: Cannot find JsonWriter or JsonFormat type class for List[Int]**
**List(1,2,3).toJson**

Any thoughts on what I might be doing wrong? Are there extra steps I need to take? Thanks in advance.