Hello everyone,
I am new to Scala, this is my first post.
I’d like to convert xml to json. I found this
could do the job.
But when I add this library in my sbt, it has error. So, I’d like to know how to use a library in Scala.
My steps are:
-
add libraryDependencies libraryDependencies ++= Seq(…
“org.json4s” %% “json4s-native” % “3.7.0”
) -
import org.json4s._
in my scala file
It does not compile and I have error: json4s._ is not a package of org.
Same thing with scala.xml: I put “org.scala-lang.modules” %% “scala-xml” % “1.1.1”, in build.sbt, import scala.xml_ in scala file and I go error
Thank you very much