It does return an array, but puts of an Array does not do what you expect
ruby {
code => '
b = event.get("[response][b]")
if b.kind_of? Array
puts "b is an Array"
end
puts "puts of b -- "
puts b
puts "puts of b.to_s -- "
puts b.to_s
'
}
produces
b is an Array
puts of b --
{"a1"=>"aone"}
{"a2"=>"atwo"}
puts of b.to_s --
[{"a1"=>"aone"}, {"a2"=>"atwo"}]
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.