Ciao a tutti!ho un problema con la struttura di un json....vi spiego ho un servlet che mi legge alcuni file e mi restituisce un testo che rapresenta la struttra di un file json contenente le informazioni che mi servono,questo file mi serve per creare un menu ad albero con dojo.L a servlet restituisce una struttura cosi:
Codice PHP:
{'identifier': 'type',
'label': 'name',
'items': [
{'name': 'multiFormatSample.xml', 'type':'0',
'children': [
{ 'name':'outputstructure', 'type':'1',
'children': [
{ 'name':'light', 'type':'2'},
{ 'name':'temperature', 'type':'3'},
{ 'name':'packet_type', 'type':'4'}
]
},
{ 'name':'information', 'type':'5',
'children': [
{ 'name':' Nome Tabella : MultiFormatTemperatureHandler', 'type':'6'},
{ 'name':'descriptor : This sensor simulates light and temperature readings every one second. ', 'type':'7'}
]
},
{ 'name':'position', 'type':'8',
'children': [
{'name':' Coordinate del sensore : Sensor 114 @ EPFL 46.520000 6.565000 ', 'type':'9' }
]
}
]
},
]
}
con questa uscita firefox funziona perfettamente,mi visualizza per esempio outputstructure che cliccando mi fa vedere i tre campi light temperature e packet_type...mentre con internet explorer nn funziona visualizza solo la "radice" del albero....io penso sia dovuta alla errata struttura del file json ma nn riesco a capire dove sbaglio!potete aiutami?grazie in anticipo!!!