mirror of
https://github.com/lucaslorentz/caddy-docker-proxy.git
synced 2025-12-12 18:21:18 +01:00
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"}`