JSONPretty sends a pretty-print JSON with status code.
(code int, i any, indent string)
| 572 | |
| 573 | // JSONPretty sends a pretty-print JSON with status code. |
| 574 | func (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. |
| 579 | func (c *Context) JSONBlob(code int, b []byte) (err error) { |