Json – null check is always evaluating to false
import org.json.JSONObject; String someStringJsonData = "{"someKey": " + "null" + "}"; JSONObject someJsonObjectData = new JSONObject(someStringJsonData); Object someKey = someJsonObjectData.get("someKey"); if (null == someKey) { System.out.println("someKey is null"); } I have the above simple snippet of code. I would expect…