get J S O N Object
Return the JSONObject in cache.
Return
the JSONObject if cache exists or null otherwise
Parameters
key
The key of cache.
open fun getJSONObject(@NonNull() key: String, defaultValue: JSONObject): JSONObject
Content copied to clipboard
Return the JSONObject in cache.
Return
the JSONObject if cache exists or defaultValue otherwise
Parameters
key
The key of cache.
defaultValue
The default value if the cache doesn't exist.