如何以JSON字符串轉換成Java的Android的反對,這樣我可以訪問「NAME2」如何JSON字符串轉換在Java對象的Android
感謝
// this is how my json looks {"name1":"a","name2":"b","name3":"c","name4":"d"}
String mytext = GetMyJSON();
JSONObject obj = new JSONObject(mytext);
Strin N1 = obj.name1;
@ nr4bt sugersts法律途徑來映射你的JSON反對。 –