php version fonctionnelle ( alignée sur python )

+ json bien formé
This commit is contained in:
philippe lhardy
2025-06-23 10:17:21 +02:00
parent a637d58b49
commit 502ea0aeaf
2 changed files with 105 additions and 21 deletions

86
samples/3.json Normal file
View File

@@ -0,0 +1,86 @@
{
"candidats":{
"A":"albert",
"B":"Beatrice",
"C":"Chloé",
"D":"Deborah",
"E":"Eric",
"F":"Francçois",
"G":"Gisèle",
"H":"Hugo"
},
"votants":{
"decompte":11
},
"mentions":[
"Très Bien",
"Bien",
"Assez Bien",
"Passable",
"Insuffisant",
"A rejeter"
],
"votation":
{
"date":"14 juin 2025",
"lieu":"liffré",
"votes":[
{
"A":1,
"C":2,
"D":3
},
{
"B":1,
"C":2,
"E":3
},
{
"A":1,
"C":2,
"F":3
},
{
"G":1,
"C":2,
"D":3
},
{
"A":1,
"G":2,
"E":3
},
{
"E":1,
"C":2,
"D":3
},
{
"E":1,
"C":2,
"D":3
},
{
"A":1,
"D":2
},
{
"A":5,
"C":2,
"D":3
},
{
"A":4
},
{
"A":1,
"C":2,
"D":3,
"B":4,
"E":3,
"F":4,
"G":0
}
]
}
}