Helllo, currently returning json array string to script (fullfiled from data action).
How can i get the number of items? or access to some element [1]
tried with .length, indexof... not working
this is my json and script:
[{
"fullname": "ygessen",
"phone_1": "60",
"total_policies": 1,
"unpaid_policies": 1,
"accidents_open": 0,
"policies": [{
"status": "Anulada",
"periodicity": "Anual",
"emission_date": "14/12/2022",
"expiration_date": "14/12/2023",
"unpaid": true,
"accident": false,
"signed_document": ""
}
]
}, {
"fullname": "aidn ebapru ee2yssgn",
"phone_1": "70",
"total_policies": 1,
"unpaid_policies": 1,
"accidents_open": 0,
"policies": [{
"status": "Anulada",
"periodicity": "Anual",
"emission_date": "14/12/2022",
"expiration_date": "14/12/2023",
"unpaid": true,
"accident": false,
"signed_document": ""
}
]
}
]