App Store Update & Persistent Data?

What technically happens to text that is saved as persistent app state, when an app is updated, for example, through the App Store?

Is the variable loaded from 'the device-specific encrypted storage'? If that's the case, then one can only save smaller texts. I would like to save a JSON file.

Thanks :-)

1
1 reply