Bonjour,
J'ai un tableau "Formation" de format Json :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
4b85108e29f64403479107: {
Commentaire: "niveau moyen",
CreatedOn: "2010-02-24 12:42:06",
EndDate: "28-03-2010",
Formation: "Maintenance info",
Id_Candidat: "4b7fe227a985e4.21594906",
Id_CandidatFormation: "4b85108e29f64403479107",
Id_Etablissement: "Etablisement1",
Id_StudyLevel: "4b6eafd125d6c5.27133537",
ModifiedOn: "2010-03-07 17:26:55",
StartDate: "02-03-2010",
id: "4b85108e29f64403479107"
},
4b8625dd0bf58351243892: {
Commentaire: "Description1111111",
CreatedOn: "2010-02-25 08:25:17",
EndDate: "00-00-0000",
Formation: "Formation5",
Id_Candidat: "4b7fe227a985e4.21594906",
Id_CandidatFormation: "4b8625dd0bf58351243892",
Id_Etablissement: "00-00-1995",
Id_StudyLevel: "",
ModifiedOn: "0000-00-00 00:00:00",
StartDate: "00-00-0000",
id: "4b8625dd0bf58351243892"
}
}
je veut ajouter dedans des autres enregistrements ou données, j'ai essayer avec ça mais ne marche pas!!! ou data est un identifiant

Formation[data][Id_Etablissement] =etablissemant;
Formation[data].Formation = Formation;
Formation[data].Commentaire =Commentaire;
Formation[data].StartDate =StartDate;
Formation[data].EndDate =EndDate;
merci d'avance.