    # File lib/chef/resource_collection.rb, line 154
        def to_json(*a)
          instance_vars = Hash.new
          self.instance_variables.each do |iv|
            instance_vars[iv] = self.instance_variable_get(iv)
          end
          results = {
            'json_class' => self.class.name,
            'instance_vars' => instance_vars
          }
          results.to_json(*a)
        end