Good day. Began to learn Scala, you need to write a method that accepts a JSON object. Added the library to the build.sbt file like this:

libraryDependencies += "org.json4s" %% "json4s-jackson" % "3.2.11" 

But I do not see what it would add. Maybe I missed something? Maybe you need to compile it?

PS I work in Intellij IDEA for the first time on this, I think that miss some kind of action.

    2 answers 2

    Does anything happen after saving the sbt file? If in Intellij IDEA it is not necessary to set up auto-import, then you need to update the project (go to SBT and do "Refresh All SBT projects"). After that the library should be added.

      It should be like this:

       libraryDependencies ++= Seq( "org.json4s" %% "json4s-jackson" % "3.2.11" )