1 JSON respond blocks
Lucas Lorentz edited this page 2022-10-20 12:32:51 +02:00

If you need to respond with a JSON block, escape all the {, }, : and " characters with their \uXXXX equivalents (\u007b, \u007d, \u003a and \u0022):

caddy.respond: "\u007b\u0022key\u003a\u0022value\u0022\u007d"
↓
respond `{"key":"value"}`