Skip to content

Could you provider an option to use c.JSON as pretty output #762

@subchen

Description

@subchen

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.JSONPretty = true
echo.context.JSON = func(c echo.Context, code int, obj interface{}) {
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions