]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: add encode_json
authorYehuda Sadeh <yehuda@inktank.com>
Tue, 12 Feb 2013 17:40:12 +0000 (09:40 -0800)
committerYehuda Sadeh <yehuda@inktank.com>
Fri, 22 Mar 2013 18:23:08 +0000 (11:23 -0700)
commitb07f3cda5e79e9345a3132daa416c4b16a8248c5
tree287bca862c01665a1b270c103773cc98bbd11068
parent96ad9b149f22c08ad1510833f45d9afcb90d3289
rgw: add encode_json

dump() just dumps the internal content of an object, encode_json()
create the object inside its own section. Note that there are cases
where we don't want an object to be surrounded by a section, e.g.,
when an object represents an array. In such a case we'd need to
override the encode_json() for this object type.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/common/ceph_json.cc
src/common/ceph_json.h
src/rgw/rgw_admin.cc
src/rgw/rgw_common.cc
src/rgw/rgw_common.h
src/rgw/rgw_json_enc.cc