为什么\
在"
前添加JSON
?它使我的scala> import play.api.libs.json._
import play.api.libs.json._
scala> val bodyAsString = """{"result":"error","additional-info":"Incorrect body type. Body type must be JSON"}"""
scala> val j2 = Json.toJson(bodyAsString)
j2: play.api.libs.json.JsValue = "{\"result\":\"error\",\"additional-info\":\"Incorrect body type. Body type must be JSON\"}"
结构不正确。
(+)