Imagine I have my application's data stored in a json file:
{
"apples": 5,
"bananas": 2,
"kiwis": 0
}
How can I keep my data when I make an update of my game and a variable is added to it ? Like so :
{
"apples": 5,
"bananas": 2,
"kiwis": 0,
"oranges": 3
}
I'm searching for a clean way to do it