[deepak/mags] added method to pass array of hashes to nested array