MCPcopy Index your code
hub / github.com/labstack/echo / JSONPretty

Method JSONPretty

context.go:574–576  ·  view source on GitHub ↗

JSONPretty sends a pretty-print JSON with status code.

(code int, i any, indent string)

Source from the content-addressed store, hash-verified

572
573// JSONPretty sends a pretty-print JSON with status code.
574func (c *Context) JSONPretty(code int, i any, indent string) (err error) {
575 return c.json(code, i, indent)
576}
577
578// JSONBlob sends a JSON blob response with status code.
579func (c *Context) JSONBlob(code int, b []byte) (err error) {

Callers 2

TestContextJSONPrettyFunction · 0.95

Calls 1

jsonMethod · 0.95

Tested by 2

TestContextJSONPrettyFunction · 0.76