View definition

(*Context).IndentedJSON

Defined in github.com/gin-gonic/gin/context.go

Description

IndentedJSON serializes the given struct as pretty JSON (indented + endlines) into the response body. It also sets the Content-Type as "application/json". WARNING: we recommend to use this only for development propuses since printing pretty JSON is more CPU and bandwidth consuming. Use Context.JSON() instead.

IndentedJSON is referenced in 8 repositories

github.com/gin-gonic/gin github.com/looterz/grimd github.com/yyyar/gobetween

...