# File lib/chef/cookbook/metadata.rb, line 382
      def to_json(*a)
        result = {
          :name             => self.name,
          :description      => self.description,
          :long_description => self.long_description,
          :maintainer       => self.maintainer,
          :maintainer_email => self.maintainer_email,
          :license          => self.license,
          :platforms        => self.platforms,
          :dependencies     => self.dependencies,
          :recommendations  => self.recommendations,
          :suggestions      => self.suggestions,
          :conflicting      => self.conflicting,
          :providing        => self.providing,
          :replacing        => self.replacing,
          :attributes       => self.attributes,
          :groupings        => self.groupings,
          :recipes          => self.recipes,
          :version          => self.version
        }
        result.to_json(*a)
      end