WriteJson write (httpCode, json string) to response auto convert interface{} to json string
(i interface{})
| 618 | // WriteJson write (httpCode, json string) to response |
| 619 | // auto convert interface{} to json string |
| 620 | func (ctx *HttpContext) WriteJson(i interface{}) error { |
| 621 | return ctx.WriteJsonC(defaultHttpCode, i) |
| 622 | } |
| 623 | |
| 624 | // WriteJsonC write (httpCode, json string) to response |
| 625 | // auto convert interface{} to json string |
nothing calls this directly
no test coverage detected