# File lib/yajl.rb, line 88
    def self.encode(obj, str_or_io=nil)
      warn "WARNING: Yajl::Stream has be deprecated and will most likely be gone in the next release. Use the Yajl::Encoder class instead."
      Encoder.new.encode(obj, str_or_io)
    end