Open wvdvegt opened 6 years ago
Sure, whenever you access a key that doesn't exist the JSONObject will return a JSONLazyCreator. JSONNode has a custom == operator that will return true when you compare a lazy creator instance against null. So just do
If (N["error"] == null)
Hi
For a swagger related project I need to detect the absence of some keys (like 'error'). What is the correct way to check the absence of keys?