Serializes value to JSON and writes it to encrypted storage under key.
Parameters
The type of the value to store.
The Android context used to access encrypted storage.
The storage key under which the value is saved.
The value to serialize and persist.