def load_json_value(hash, key, must_be_class=nil)
if hash[key].is_a? String
def load_json_value(hash, key, must_be_class=nil)
if hash[key].is_a? String
if must_be_class and !hash[key].is_a? must_be_class
raise TypeError.new("parameter #{key.to_s} must be a #{must_be_class.to_s}")
end
if must_be_class and !hash[key].is_a? must_be_class
raise TypeError.new("parameter #{key.to_s} must be a #{must_be_class.to_s}")
end