In a Scala controller, I can simply render a response (for dev pursposes) using the magical """:
Ok("""{"key":"value"}"""}
In a Java controller, this obviously doesn't work. Is there a quick way to render a JSON string as a response? (that is too long to escape manually without hitting my head against a wall)
I don't want to do:
ok("{\"key\":\"value\"}");