Subramanian Iyer
02/07/2022, 4:30 PMfun getSource(inp: JSONObject, key: String): String{
return JSONObject(inp.getString("_source")).optString(key)
}
My ide is saying that the public methods getString and optString are unresolved references. Anyone know what the issue might be?Feri Nagy
02/07/2022, 5:49 PMSubramanian Iyer
02/07/2022, 6:10 PMopen class JSONObject
Do I need something else?Shohei Kawano
02/08/2022, 12:47 AMSubramanian Iyer
02/08/2022, 4:37 AMFeri Nagy
02/08/2022, 6:39 AMimport org.json.JSONObject
Subramanian Iyer
02/08/2022, 3:06 PMFeri Nagy
02/08/2022, 4:44 PMSubramanian Iyer
02/08/2022, 5:20 PM