I have a Json movie file and it is quite long for what I really want but that is not the case, the problem of it being so long is that I want to add several more fields to each movie and I am quite new to the time to work on these types of files (In my case I work with Python) and I want to create a loop to add data to all movies, I know it's pretty simple but I can not find a way to do it no matter how hard I try .
The format of the json file is as follows:
[
{
"title": "The Shawshank Redemption",
"rank": "1",
"id": "tt0111161"
},
{
"title": "The Godfather",
"rank": "2",
"id": "tt0068646"
},
{
"title": "The Godfather: Part II",
"rank": "3",
"id": "tt0071562"
},
{
"title": "Pulp Fiction",
"rank": "4",
"id": "tt0110912"
},
{
"title": "The Good, the Bad and the Ugly",
"rank": "5",
"id": "tt0060196"
]
I have tried several formats of the for but there is no way to get it out, to see if someone can help me a little and enlighten me with the idea, because they modify the data but not add new, in this case I want to add below id another field that is called Oscars, I hope someone can help me!
Greetings!