lib/savon_helper/mapping_object.rb
# Convert the instance to a JSON representation
Convert the instance to a JSON representation
Convert the instance to a JSON representation
def to_json(*a)
      result = {}
      self.type_mappings.keys.each { |key| result[key] = self.send(key).to_json }
      {
          'json_class' => self.class.name,
          'data' => result
      }.to_json(*a)
    end
def to_json ( * a ) result = { } self . type_mappings . keys . each { | key | result [ key ] = self . send ( key ) . to_json } { 'json_class' => self . class . name , 'data' => result } . to_json ( * a ) end
Convert the instance to a JSON representation
Convert the instance to a JSON representation
a
<not_specific>