optional
Gets an object from a JSONObject
by key, returning default
(null if not specified) if the key is not found.
Usage:
jsonObj.optional<String>("key")
jsonObj.options<String>("key") { "default" }
Content copied to clipboard
Since
0.46.0
Gets an object from a JSONObject
by key, returning default
(null if not specified) if the key is not found.
Usage:
jsonObj.optional<String>("key")
jsonObj.options<String>("key") { "default" }
0.46.0