MCPcopy Create free account
hub / github.com/devfeel/dotweb / WriteJson

Method WriteJson

context.go:620–622  ·  view source on GitHub ↗

WriteJson write (httpCode, json string) to response auto convert interface{} to json string

(i interface{})

Source from the content-addressed store, hash-verified

618// WriteJson write (httpCode, json string) to response
619// auto convert interface{} to json string
620func (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

Callers

nothing calls this directly

Calls 1

WriteJsonCMethod · 0.95

Tested by

no test coverage detected