この文字列を JSONArray に変換するにはどうすればよいですか?
{"result":{"passion":[{"id":2,"description":"Sushi"},{"id":3,"description":"Dinner"},{"id":4,"description":"Sex"},{"id":5,"description":"Boobies"},{"id":6,"description":"Sleep"},{"id":7,"description":"Cars"},{"id":8,"description":"Travel"},{"id":9,"description":"Soccer"},{"id":10,"description":"Silice"}]}}
私はやろうとしています:
JSONArray jsonArray = jsonObject.getJSONArray("passion");
しかし、私は例外を得ています:
org.json.JSONException: No value for passion