# File lib/rufus/json.rb, line 129
  def self.pretty_encode (o)

    case @backend
      when JSON
        encode(o, :indent => '  ', :object_nl => "\n", :array_nl => "\n", :space => ' ')
      when YAJL
        encode(o, :pretty => true, :indent => '  ')
      else
        encode(o)
    end
  end