{"key_a" => "value_a", "key_b" => "value_b", "key_c" => { "key_c_a" => nil, "key_c_b" => nil, "key_c_c" => "value_c_c"}, "key_d" => nil, "key_e" => nil }
how do i map the hash such that i get the result as "key_c_a", "key_c_b", "key_d" and key_e"?
i keep getting my answer as an empty array and here is the method in the module that is used in the main class
def self.get_null_keys(container)
container.map do |key, value|
if value.is_a?(Array)
value.map { |field| render_null_fields(field) }
elsif value.is_a?(Hash)
render_null_fields(value)
elsif value.nil?
key
end
end
end