Mikael Ståldal
10/28/2022, 9:45 AMResponse
with JSON from a string? This seems to work:
Response(Status.OK).header("Content-Type", ContentType.APPLICATION_JSON.value).body("""{"foo":"bar","baz":17}""")
but is there some nicer way?dave
10/28/2022, 9:52 AMdave
10/28/2022, 9:54 AMMikael Ståldal
10/28/2022, 9:55 AMdave
10/28/2022, 9:56 AMdave
10/28/2022, 9:56 AMdave
10/28/2022, 9:57 AMBody.string(ContentType.APPLICATION_JSON).toLens()
Mikael Ståldal
10/28/2022, 5:45 PM