JSON.generate fails if it is passed a Chef::Attributes instance. Call #to_hash to ensure it always receives a hash.
Merge pull request #6 from berkshelf/json_generate_bug

JSON.generate fails if it is passed a Chef::Node::Attribute instance.