chef/lib/chef/data_bag_item.rb
# Serialize this object as a hash 
Serialize this object as a hash
Serialize this object as a hash
def to_json(*a)
      result = {
        "name" => self.object_name,
        "json_class" => self.class.name,
        "chef_type" => "data_bag_item",
        "data_bag" => self.data_bag,
        "raw_data" => self.raw_data
      }
      result["_rev"] = @couchdb_rev if @couchdb_rev
      result.to_json(*a)
    end
def to_json ( * a ) result = { "name" => self . object_name , "json_class" => self . class . name , "chef_type" => "data_bag_item" , "data_bag" => self . data_bag , "raw_data" => self . raw_data } result [ "_rev" ] = @couchdb_rev if @couchdb_rev result . to_json ( * a ) end
Serialize this object as a hash
Serialize this object as a hash
a
<not_specific>