Hi, I have a serious problem, I have a json file with the following format:
{
"alberto": {
"agis": "admin",
"lima": "admin"
},
"pedro": {
"agis": "admin"
},
"manu": {
"lima": "admin"
},
"marcos": {
"agisweb": "office"
}
}
and I do not know how to go through it, I'm used to the typical format:
{"poblacion":[
{ "id": "0", "nombre": "Alcobendas" }
,
{ "id": "1", "nombre": "Miraflores de la Sierra" }
,
{ "id": "2", "nombre": "San Fernando de Henares" }
]}
where you can go through as a population [0] .name = Alcobendas etc.
But with the first structure I am totally lost, I have managed to cross it by placing it in an object where I add tags to go through it, but I need to read it and modify it without the structure of the initial file changing and that is where I have the problem, someone has an idea How to walk it?
they had told me something like data ['alberto'] [agis] or something like that ... but nothing I have tried everything and there is no way.
work with angle 1.x in case there is any method. Thank you very much!