def csv_node(data)
      arrays = data.keys.select { |key| data[key].is_a? Array }
      arrays.empty? ? [data] : data[arrays.first]
    end
def csv_node(data)
      arrays = data.keys.select { |key| data[key].is_a? Array }
      arrays.empty? ? [data] : data[arrays.first]
    end
Determins which part of the data is best suited to be displayed
 as CSV.

 - If the response contains one or more arrays, the first array will
   be the CSV output
 - Otherwise, if the response was parsed to a ruby object, the response
   itself will be used as a single-row CSV output.

 Override this if you want to have a different decision process.