def encode(object)
      if MultiJson.respond_to?(:dump)
        # MultiJson >= 1.3
        MultiJson.dump(object)
      elsif MultiJson.respond_to?(:encode)
        # MultiJson < 1.3
        MultiJson.encode(object)
      end
    end
def encode(object)
      if MultiJson.respond_to?(:dump)
        # MultiJson >= 1.3
        MultiJson.dump(object)
      elsif MultiJson.respond_to?(:encode)
        # MultiJson < 1.3
        MultiJson.encode(object)
      end
    end
FIXME: This is some seriously annoying shit.
 MultiJson should not have deprecated its old API and we wouldn't need
 to do this.