Don't output json_class with the config json

This commit is contained in:
Mitchell Hashimoto 2011-12-16 17:38:19 -08:00
parent 5ae19f4782
commit f37778c848
1 changed files with 1 additions and 2 deletions

View File

@ -48,8 +48,7 @@ module Vagrant
# the JSON is parsed back, it can be loaded back into the proper class. # the JSON is parsed back, it can be loaded back into the proper class.
# See {json_create}. # See {json_create}.
def to_json(*a) def to_json(*a)
result = { 'json_class' => self.class.name } instance_variables_hash.to_json(*a)
result.merge(instance_variables_hash).to_json(*a)
end end
# Returns the instance variables as a hash of key-value pairs. # Returns the instance variables as a hash of key-value pairs.