activesupport + json `to_json’: wrong argument type
encoding.rb:21:in `to_json’: wrong argument type Hash (expected Data) (TypeError)
Seems to occur with floating point numbers and when json is required before activesupport
For example:
require ‘rubygems’
require ‘json’
require ‘activesupport’[{:val => 256.0}].to_json
One way to hack around this is to make the float a string.
