I want to convert a simple JSON string such as {\"Name\":\"abc\", \"age\":10}
to the corresponding JSON object (not a custom Scala object such as \"Person\"). D
Also you can use Json Library from play framework, but can be used as standalone lib also. This library based on good but abandoned Jerkson project, which is a Scala wrapper around the super-fast Java based JSON library, Jackson. And it has very rich and good documented toolset for working with JSON - transofrmers, validators and etc.
import play.api.libs.json._
val json: JsValue = Json.parse("""{"a":1}""")
To use this lib without play just install it in build.sbt with string
libraryDependencies += "com.typesafe.play" %% "play-json" % "2.3.0"