I am getting a simple JSON data structure with phone numbers, fax numbers and mobile numbers in a SAPUI5 application:
{
"teles": [
{"tele": "05312024040", "default": true},
{"tele": "017666254336", "default": false},
{"tele": "017666224336", "default": false}
],
"faxs": [
{"fax":"053155599755", "default": true},
{"fax":"01548568745", "default": false}
],
"mobils": [
{"mobil":"017655994816", "default": true},
{"mobil":"01548568745", "default": false}
]
}
My goal is to loop/parse through the Data structure and get the number that is default, and put it into another model with the name "tele-standard", "fax-standard" or "mobil-standard". This should happen before displaying the data, so It can be put into these TextFields, that are editable:

I don't know at all how to do that with jquery, or sapui5 or javascript so I can reach my goal. Can you maybe help?
Results in the new model should look like:
{
"archived": "-",
"nummer": "12",
"anrede": "Herr",
"vorname": "Osamah",
"nachname": "Al-Doaiss",
"tele-default": "05312024040",
"fax-defaule": "053155599755",
"mobil-default": "017655994816"
}
TL;DR: I have a JSON with Arrays. I want to parse through them and get the default number. No idea how!