# Pastebin bKmPxVww data = [{'x'=>1}, {'x'=>2},{'x'=>'foo'}] data.map{|h| OpenStruct.new(h)}.map(&:x) # => [1, 2, "foo"]