データ org.json.JSONException の解析エラー:
タイプ java.lang.String の値を JSONArray に変換できません
JSONArray jsonArray = new JSONArray(result);
JSONArray ja= (JSONArray) jsonArray.get(0);
JSONObject jb = (JSONObject) ja.get(0);
//String firstvalue = jb.getString("0");
int secondvalue = jb.getInt("customer_id");
Myjson の出力は次のようになります[[{"0":"2","customer_id":"2"}]]
私はphpのようなものを使って出力を生成しています
$output[]= $customerid;
print(json_encode($output));