# File lib/rack/utils/okjson.rb, line 442 def keyenc(k) case k when String then strenc(k) else raise Error, "Hash key is not a string: #{k.inspect}" end end