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