# File lib/dm-types/json.rb, line 10 def self.load(value, property) if value.nil? nil elsif value.is_a?(String) ::JSON.load(value) else raise ArgumentError.new("+value+ of a property of JSON type must be nil or a String") end end