Blockquote
I have used flatten to get the data in an irrregular format similar to the following: data = { key1.0.key1_1: value1_1, key1.0.key1_