From: Yehuda Sadeh Date: Tue, 14 May 2013 19:25:17 +0000 (-0700) Subject: rgw: json_encode json a bit differently X-Git-Tag: v0.67-rc1~128^2~124 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=67ecd75c84c5a7abea3d6b4203739668e0d1b3e3;p=ceph.git rgw: json_encode json a bit differently Encode map as a list, it's a more friendly representation. Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_json_enc.cc b/src/rgw/rgw_json_enc.cc index 2094b5cb372..7426e33102b 100644 --- a/src/rgw/rgw_json_enc.cc +++ b/src/rgw/rgw_json_enc.cc @@ -507,7 +507,7 @@ void RGWRegion::dump(Formatter *f) const encode_json("is_master", is_master, f); encode_json("endpoints", endpoints, f); encode_json("master_zone", master_zone, f); - encode_json("zones", zones, f); + encode_json_map("zones", zones, f); /* more friendly representation */ } static void decode_zones(map& zones, JSONObj *o)