I am trying to parse JSON using the Lift JSON library. I have imported the library using SBT by adding the following statement to my build.sbt file:
libraryDependencies +="net.liftweb" % "lift-json" % "2.0"
I start SBT and run the Scala interpreter using the "console" command.
I then run the following two statements:
import net.liftweb.json._
parse(""" { "numbers" : [1, 2, 3, 4] } """)
After the second statement I get the following error:
<console>:11: error: not found: value parse
parse(""" { "numbers" : [1, 2, 3, 4] } """)
To make sure it is not a problem with my project I have started a clean project and only imported the Lift JSON library. With the same result. I have even tried an alternative JSON library (json4s), but it gives exactly the same problem when it gets to the parse statement :-(
I am running the following versions: Scala 2.11.2 SBT 0.13.6 Lift JSON 2.0
Any suggestions?