Is there a way to easily store json data in a variable in python. I don't mean the entire json in a variable, rather parsing and storing it as a key-value.
For instance - if this is the json file
[
[
1,
"Apple"
],
[
2,
"Orange"
],
[
3,
"Grapes"
],
[
4,
"Banana"
],
[
5,
"Mango"
]
]
I want to have a list or some other datatype in python through which I can easily access the data.
Something like variable[1] should print Apple and so on