Android JsonArray 与String

版权声明:独学而无友,则孤陋寡闻。q群582951247 https://blog.csdn.net/mp624183768/article/details/89556560

string ->JsonArray

JSONArray myJsonObject=null;
                try {
                    myJsonObject  = new JSONArray(data);
                } catch (JSONException e) {

                }
                Log.e(TAG, "callNetVideorun: "+myJsonObject.toString() );

JsonArray->String


		
		String jsonString = jsonArray.toString();
		System.out.println("JSONArray转String: "+jsonString);
		System.out.println();	

猜你喜欢

转载自blog.csdn.net/mp624183768/article/details/89556560
今日推荐