as Commons, I can use ?pretty in RESTful API to get a pretty JSON output.
But In Echo, only Echo.Debug = true to get pretty output, but it is not for production.
Could you can provider another option or let us override the c.JSON() func
Example:
echo.context.JSON = func(c echo.Context, code int, obj interface{}) {
}