# File lib/vendor/okjson.rb, line 442 def numenc(x) if x.nan? || x.infinite? return 'null' end rescue nil "#{x}" end