From b558e50eb28b3a76124ab5c6ceb400b38f57b5a5 Mon Sep 17 00:00:00 2001 From: Jack Zampolin Date: Fri, 7 Dec 2018 17:33:52 -0800 Subject: [PATCH] Fix quoted json return --- client/keys/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/keys/list.go b/client/keys/list.go index f232fccffb..9d01d500bb 100644 --- a/client/keys/list.go +++ b/client/keys/list.go @@ -50,7 +50,7 @@ func QueryKeysRequestHandler(indent bool) http.HandlerFunc { } // an empty list will be JSONized as null, but we want to keep the empty list if len(infos) == 0 { - PostProcessResponse(w, cdc, "[]", indent) + PostProcessResponse(w, cdc, []string{}, indent) return } keysOutput, err := Bech32KeysOutput(infos)