Removing to_json was a bad idea