im doing a school project. I wanna make a replica of a student. i guess grade system, which contains grades “inside” students. Here ill show a code snippet so you can try to help if you want
JSON i should work with in the beginning
{
"students": [
{
"id": "A1B2C3D4E5",
"name": "Alice",
"class": "Math",
"grades": [
{
"subject": "Math",
"value": 4,
"date": "2024-06-01"
},
{
"subject": "Science",
"value": 3,
"date": "2024-06-05"
}
]
},
{
"id": "F6G7H8I9J0",
"name": "Bob",
"class": "Science",
"grades": [
{
"subject": "Math",
"value": 5,
"date": "2024-06-02"
},
{
"subject": "History",
"value": 2,
"date": "2024-06-04"
}
]
}
]
}
I should get this parsed into class elements so i can work with them, with the python i have to be able to make a new student in the json, i have to be able to delete it, i have to be able to add/delete his grades, i have to make him able to get new/delete old subjects.
im new to JSON, been working with python for like a year now.
kristof0315 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3