val jsonObject = JSONObject(response)
val jObj = jsonObject.optJSONObject("result_key")
if (jObj.get("json_key") is JSONArray){
val rejProArr: JSONArray = jObj.getJSONArray("json_key")
} else if (jObj.get("json_key") is JSONObject) {
val rejProObject: JSONObject = jObj.optJSONObject("json_key")}Here json_key either JSONArray or JSONObject, So we can parse accordingly to avoid crash.
We Make Strategies, Searching for Websites Development To Create Valuable Websites and Products With Unique Business Ideas and The Passionate People Behind.
ReplyDeleteCodeRunner is helpful for developers primarily for its code compiling abilities. This IDE cum code editor can be useful for an apple app developer to create potent and advanced applications. CodeRunner supports 25 programming languages and is extremely lightweight. It has a built-in console, premier text editor, and customised key binding. If you are an experienced freelance apple app developer, then you can find premium development projects from top clients on Eiliana.com.
ReplyDelete