scala - Issue parsing JSON with Lift JSON -
I am trying to parse JSON to use the JSON Library Lift JSON library. I've imported the library using SBT by adding the following statement to my build .sbt file:
libraryDependencies + = "net.liftweb"% "lift-json"% "2.0" < / Code> I start the SBT and run Scala interpreter using the "console" command.
Then I run the following two statements:
import net .liftweb.json._pars ("" "{" number ": [1, 2, 3, 4]} "" ") After the second statement, I get the following error:
To make sure that this is not a problem in my project, I started a clean project and imported only the Jasonon Library Lift. With the same result, I have also tried an optional JSON library (json4s), but it gives a similar problem when it receives a parse statement: (
I am running the following version: Scala 2.11 .2 SBT 0.13 6 Lift JSON 2.0
Any suggestions?
Lift 2.0 lot Use 2.5 instead of Afaict 2.0 in the json package object does not actually contain the parse method.
Comments
Post a Comment