aboutsummaryrefslogtreecommitdiff
path: root/core.go
diff options
context:
space:
mode:
Diffstat (limited to 'core.go')
-rw-r--r--core.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core.go b/core.go
index 3aa0c7c..b15ca8b 100644
--- a/core.go
+++ b/core.go
@@ -91,7 +91,7 @@ func (api *API) requestHandler(resource interface{}) http.HandlerFunc {
code, data, header := handler(request.Form, request.Header)
- content, err := json.Marshal(data)
+ content, err := json.MarshalIndent(data, "", " ")
if err != nil {
rw.WriteHeader(http.StatusInternalServerError)
return
bgstack15