Ciao a tutti, mi trovo a dover decodificare un json fatto cosi:
Come librerire js uso Jquery e parseJSON.codice:{ 'Honda': { 'Accord': ['2dr', '4dr'], 'CRV': ['2dr', 'Hatchback'], 'Pilot': ['base', 'superDuper'] }, 'Toyota': { 'Prius': ['green', 'superGreen'], 'Camry': ['sporty', 'square'], 'Corolla': ['cheap', 'superFly'] } }
Come posso leggere i singoli nodi (le marche delle auto) e per ogni nodo leggere i sotto-nodi e le singole proprietà per nodo? grazie!!!
grazie!!!!!