What you posted as an expected result is not really an array, more like a hash.
What you might be after is nested fields, which can easily be added with the mutate filter.
I need to have it wrapped in the array though, how would i get the hash to be wrapped in the array? Sorry I don't have much experience using the mutate filter and I am pretty confused with it.
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.