skip to Main Content

Get average of Integer values by comparing 2 different array based on their index – Ios swift

I'm stuck in this problem. Here is my Dictionary of arrays: {"Image":["22301657205688/Chin2231657205705u3zK.jpeg","22301657205688/Chin2231657205707k6HN.jpeg","22301657205688/Chin2231657205708Ip57.jpeg","22301657205688/Forehead2231657205693CbX9.jpeg","22301657205688/L Cheek2231657205697g8d4.jpeg","22301657205688/Nose22316572057008AGT.jpeg","22301657205688/Nose2231657205702k9OU.jpeg"],"OutputScore":[3,9,9,3,1,3,9],"TotalScore":5.285714285714286} I need to get the average number of OutputScore for the common Image name like Chin and Nose which are common in an array of Image. How…

VIEW QUESTION

How to get value from associative json in shopify liquid

{"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 -%} <li>{{ shop.metafields.advance_faq_app.advance_faq_app }}</li><br/> {%-…

VIEW QUESTION
Back To Top
Search