Convert a JsValue to a String
If you have a value of type JsValue
, you can convert to a trimmed String
with:
Json.stringify(jsValue)
Alternatively, you can convert it to a pretty-printable representation with:
Json.prettyPrint(jsValue)
For additional details, refer to the documentation.