# File lib/vendor/okjson.rb, line 367 def encode(x) case x when Hash then objenc(x) when Array then arrenc(x) when String then strenc(x) when Numeric then numenc(x) when Symbol then strenc(x.to_s) when true then "true" when false then "false" when nil then "null" else "null" end end