Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
{"collections"=>{"1656046380"=>[{"collection_title"=>"sport"}, {"question"=>"q_0", "answer"=>"a_0"}, {"question"=>"q_1", "answer"=>"a_1"}, {"question"=>"q_2", "answer"=>"a_2"}], "1656047118"=>[{"collection_title"=>"cars"}, {"question"=>"q_0", "answer"=>"a_0"}, {"question"=>"q_1", "answer"=>"a_1"}, {"question"=>"q_2", "answer"=>"a_2"}]}, "group"=>{"1656046878"=>[{"group_title"=>"page1"}, {"style"=>"3"}, {"selected_coll"=>"["1656046380","1656046423"]"}]}}

If this is my data which I am getting using liquid for loop

{%- for field in shop.metafields.advance_faq_app -%}

{{ shop.metafields.advance_faq_app.advance_faq_app }}

{%- endfor -%} 
I am able to get this data "group"=>{"1656046878"=>[{"group_title"=>"page1"}, {"style"=>"3"}, {"selected_coll"=>"["1656046380","1656046423"]"}]}}

Using {{ shop.metafields.advance_faq_app.advance_faq_app.group }} in the above for loop

How can I get the value of "group_title"

Thanks In advance


What I have tried:

I have tried using
{{ shop.metafields.advance_faq_app.advance_faq_app.group.group_title }}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900