Here you can find the source of parseJson(JSONObject jsonObject, String key)
public static Object parseJson(JSONObject jsonObject, String key) throws JSONException
import org.json.JSONException; import org.json.JSONObject; public class Main{ public static JsonHolder mJsonHolder; /****************************** Json ******************************/ public static Object parseJson(String json, String key) throws JSONException { if (mJsonHolder == null || mJsonHolder.json != json) { mJsonHolder = new JsonHolder(json); }/* w w w .j a v a2 s.c o m*/ return mJsonHolder.parseJson(key); } public static Object parseJson(JSONObject jsonObject, String key) throws JSONException { if (mJsonHolder == null || mJsonHolder.mJsonObject != jsonObject) { mJsonHolder.mJsonObject = jsonObject; } return mJsonHolder.parseJson(key); } }