גישה לאובייקט בתוך מערכים
-
מתקשה לגשת לאובייקט הפנימי התכלס. ל json WEBDocument אשמח לעזרה.
let ss = [[{"WEBDocument":[{"pknRecID":"295044","ValueDate":"1633384800","dExpireDate":"1633384800","CurrencyValue":"1.0000","CurrencyType":"שקל חדש","SalesPerson":"אמיחי רגב","FirstSum":"19.8000","PaymentType":"כרטיס אשראי","DocumentTypeName":"תרומה","CompanyDivision":"אינטרנט","Project":"קמחא דפסחא","dPaymentDate":"1633445517","dtRegisterDate":"1633445460","RegisterAsakim":"1633384800","nDocumentType":"14","cFirstName":"יעקב","cLastName":"רובאר","cEmailAddress":"asakim@asakimerp.co.il","cPhoneMobily":"050-99","CardExpDate":"0124","WorkingCompany":"2","ReciptPrayer":"NoSendEmail=false&","nShvaIntIn":"51162510","PBXCampaingID":"50202","CreateNewCard":"False","mDetail":"{ \"functionName\":\"klYaadPayEnd\",\"jsonID\":\"202104121340\",\"Response\":\"800\",\"expmonth\":\"01\",\"myid\":\"l1979576889\",\"currency\":\"1\",\"expyear\":\"2024\",\"npay\":\"1\",\"supplier\": u0022\",\"sum\":\"19.8\",\"ccno\":\"0000\",\"o_npay\":\"1\",\"Sign\":\"e104d52cec1086f29e7579c9761b8bcfc0d1823e756af62444266f2cfed2baf5\",\"ConfirmationCode\":\"0012345\",\"TZindex\":\"51162510\",\"Tempref\":\"295044\",\"TranzilaToken\":\"295044\",\"mailPDF\":\"mailPDF\",\"yaad\":\"yaad\" } \nId=51162510&CCode=0&Fild1=&Fild2=&Fild3=&HeshASM=0\n","nCreditCardVoucher":"0012345-800-0","cToken":"8815753527623560000","Source":"4","AccountNumberCode":"YaadPay","cPIDNumberCode":"0010066011","CampaignTargetAmount":"18.0000","CampaignAgentID":"60040","CampaignGroupID":"50033","WEBLogsID":"1480115","OperationDate":"1630533600"}]}]]
-
@אבי-203 אמר בגישה לאובייקט בתוך מערכים:
let ss = [[{"WEBDocument":[{"pknRecID":"295044","ValueDate":"1633384800","dExpireDate":"1633384800","CurrencyValue":"1.0000","CurrencyType":"שקל חדש","SalesPerson":"אמיחי רגב","FirstSum":"19.8000","PaymentType":"כרטיס אשראי","DocumentTypeName":"תרומה","CompanyDivision":"אינטרנט","Project":"קמחא דפסחא","dPaymentDate":"1633445517","dtRegisterDate":"1633445460","RegisterAsakim":"1633384800","nDocumentType":"14","cFirstName":"יעקב","cLastName":"רובאר","cEmailAddress":"asakim@asakimerp.co.il","cPhoneMobily":"050-99","CardExpDate":"0124","WorkingCompany":"2","ReciptPrayer":"NoSendEmail=false&","nShvaIntIn":"51162510","PBXCampaingID":"50202","CreateNewCard":"False","mDetail":"{ "functionName":"klYaadPayEnd","jsonID":"202104121340","Response":"800","expmonth":"01","myid":"l1979576889","currency":"1","expyear":"2024","npay":"1","supplier": u0022","sum":"19.8","ccno":"0000","o_npay":"1","Sign":"e104d52cec1086f29e7579c9761b8bcfc0d1823e756af62444266f2cfed2baf5","ConfirmationCode":"0012345","TZindex":"51162510","Tempref":"295044","TranzilaToken":"295044","mailPDF":"mailPDF","yaad":"yaad" } \nId=51162510&CCode=0&Fild1=&Fild2=&Fild3=&HeshASM=0\n","nCreditCardVoucher":"0012345-800-0","cToken":"8815753527623560000","Source":"4","AccountNumberCode":"YaadPay","cPIDNumberCode":"0010066011","CampaignTargetAmount":"18.0000","CampaignAgentID":"60040","CampaignGroupID":"50033","WEBLogsID":"1480115","OperationDate":"1630533600"}]}]]
ss[0][0]