Hi monks need to extract the values of tab name and the values of the elements in between the link nodes for promomdoule1 and promomodule2.I tried a couple of ways but doesn't seem to work please help$VAR1 = { 'press-release' => [ { 'PromoModuleTwo' => [ { 'LeftColoumn' + => [ + { + 'Heading' => [ + ' xxxxxx' + ], + 'PromoLink' => [ + 'XXXXXX' + ], + 'SubHeading' => [ + 'XXXXXX.' + ], + 'PromoText' => [ + 'LEARN MORE2' + ], + 'PromoImage' => [ + 'XXXXXX/' + ] + } + ], 'ModuleBackgr +oundImage' => [ + 'XXXXXX' + ], 'ColorCode' = +> [ + 'YELLOW' + ], 'RightColoumn +' => [ + { + 'Tabs' => [ + { + 'Links' => [ + { + 'AssetLink' => [ + 'XXXXXX' + ], + 'AssetTitle' => [ + 'XXXXXX' + ], + 'AssetSource' => [ + 'xxxxxxx' + ] + }, + { + 'AssetLink' => [ + 'xxxxxx' + ], + 'AssetTitle' => [ + 'xxxxx' + ], + 'AssetSource' => [ + 'xxxxxx' + ] + } + ], + 'TabName' => [ + 'NEWS' + ] + }, + { + 'Links' => [ + { + 'AssetLink' => [ + 'XXXXXX' + ], + 'AssetTitle' => [ + 'XXXXXXk' + ], + 'AssetSource' => [ + 'XXXXXX' + ] + }, + { + 'AssetLink' => [ + 'XXXXXX/' + ], + 'AssetTitle' => [ + 'xxxxxxx' + ], + 'AssetSource' => [ + 'XXXXXX' + ] + }, + { + 'AssetLink' => [ + 'XXXXXXx' + ], + 'AssetTitle' => [ + 'XXXXXX' + ], + 'AssetSource' => [ + 'XXXXXX' + ] + }, + { + 'AssetLink' => [ + 'XXXXXX' + ], + 'AssetTitle' => [ + 'XXXXXX' + ], + 'AssetSource' => [ + 'XXXXXX' + ] + } + ], + 'TabName' => [ + 'WHITEPAPERS' + ] + } + ] + } + ] } ], 'PromoModuleOne' => [ { 'LeftColoumn' + => [ + { + 'PromoLink' => [ + 'XXXXXX' + ], + 'HeadingImage' => [ + 'XXXXXX' + ], + 'PromoText' => [ + 'LEARN MORE 1' + ], + 'PromoImage' => [ + 'XXXXXX/XXXXXX.jpg' + ] + } + ], 'ModuleBackgr +oundImage' => [ + 'XXXXXX/section_bg.png' + ], 'ColorCode' = +> [ + 'MAROON' + ], 'RightColoumn +' => [ + { + 'Tabs' => [ + { + 'Links' => [ + { + 'AssetLink' => [ + 'XXXXXX' + ], + 'AssetTitle' => [ + 'XXXXXX' + ], + 'AssetSource' => [ + 'XXXXXX' + ] + }, + { + 'AssetLink' => [ + 'XXXXXX' + ], + 'AssetTitle' => [ + 'XXXXXX Ax' + ], + 'AssetSource' => [ + 'xxxxxx' + ] + }, + { + 'AssetLink' => [ + 'XXXXXX' + ], + 'AssetTitle' => [ + 'XXXXXX' + ], + 'AssetSource' => [ + 'XXXXXX' + ] + } + ], + 'TabName' => [ + 'NEWS' + ] + }, + { + 'Links' => [ + { + 'AssetLink' => [ + 'XXXXXX' + ], + 'AssetTitle' => [ + 'XXXXXX' + ], + 'AssetSource' => [ + 'NETWORK TES +T' + ] + }, + { + 'AssetLink' => [ + 'XXXXXX/' + ], + 'AssetTitle' => [ + 'XXXXXX' + ], + 'AssetSource' => [ + 'XXXXXX' + ] + }, + { + 'AssetLink' => [ + 'XXXXXX' + ], + 'AssetTitle' => [ + 'xxxxx' + ], + 'AssetSource' => [ + 'xxxxx' + ] + }, + { + 'AssetLink' => [ + 'XXXXXX' + ], + 'AssetTitle' => [ + 'XXXXXX' + ], + 'AssetSource' => [ + 'NETWORK TES +T' + ] + } + ], + 'TabName' => [ + 'WHITEPAPERS' + ] + } + ] + } + ] } ], 'modulemiddle' => [ { 'BackgroundImag +e' => [ + {} + ], 'Heading' => [ +'xxxxxxe?' ], 'SupplementalIm +age' => [ + 'XXXXXX' + ], 'ColorCode' => +[ + 'BLACK' +], 'LinkURL' => [ +'XXXXXX' ], 'RightColoumnIm +age' => [ + 'XXXXXX' + ], 'SubHeading' => + [ + 'xxxxxxx.' + ] } ], 'hero' => [ { 'videos' => [ { 'VideoI +mage' => [ + 'XXXXXX/hero_1_a1.jpg' + ], 'VideoU +RL' => [ + 'XXXXXX' + ], 'VideoT +itle' => [ + 'xxxxx.' + ] }, { 'VideoI +mage' => [ + 'XXXXXX/hero_1_a2.jpg' + ], 'VideoU +RL' => [ + 'XXXXXX' + ], 'VideoT +itle' => [ + 'xxxxx' + ] }, { 'VideoI +mage' => [ + 'XXXXXX/hero_1_a3.jpg' + ], 'VideoU +RL' => [ + 'XXXXXX' + ], 'VideoT +itle' => [ + 'xxxxx' + ] }, { 'VideoI +mage' => [ + 'XXXXXX/' + ], 'VideoU +RL' => [ + 'XXXXXX' + ], 'VideoT +itle' => [ + 'xxxxx' + ] } ], 'Heading' => [ 'xxxxx' ], 'SupplementalImage' => +[ + 'XXXXXX/icon_arrow_dark.png' +], 'SubHeading' => [ 'xxxx +xx' ], 'HeroImage' => [ 'XXXXX +X/hero_1.jpg' ] } ], 'meta' => [ { 'keywords' => [ {} ], 'summary' => [ 'XXXXXX' ], 'locale' => [ 'en_US' ], 'title' => [ 'XXXXXX' ], 'description' => [ {} ] } ] } ] };
In reply to extact nested values by rajivreddy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |