setJSON method
store (key, jsonData) pair. cache expires after defaultTimeout.
jsonData is converted to string using json.encode and stored as (JSON) String.
Implementation
Future<void> setJSON(String key, dynamic data) async {
await setJSONWithTimeout(key, data, _defaultTimeout);
}