I\'m using the org.json.JSONObject (and parser) in an Android app to parse a JSON feed. Which is the best way to determine if a property exists or not in one of
org.json.JSONObject
You might use the JSONObject function has:
JSONObject
has
if(myJSONObject.has("UnpublishDate")) { //it has it, do appropriate processing }