Fixed specs for Ruby 1.8
Removed Rails to_json method.