    # File lib/chef/resource.rb, line 333
        def to_json(*a)
          safe_ivars = instance_variables.map { |ivar| ivar.to_sym } - FORBIDDEN_IVARS
          instance_vars = Hash.new
          safe_ivars.each do |iv|
            instance_vars[iv.to_s.sub(/^@/, '')] = instance_variable_get(iv)
          end
          results = {
            'json_class' => self.class.name,
            'instance_vars' => instance_vars
          }
          results.to_json(*a)
        end