Json文字列を配列に変換したい ここに私の現在のコードがあります
String[] comments = json2.getString(KEY_COMMENT);
KEY_COMMENT は、複数のコメントを含む文字列です。コメントは php 配列に集められ、電話に Json 文字列として送り返されました。文字列を配列に変換するにはどうすればよいですか?
コメントがどのように見えるかの例はこれです
07-08 20:33:08.227: E/JSON(22615): {
"tag":"collectComments",
"success":1,
"error":0,
"numberOfComments":16,
"offsetNumber":1,
"comment":["test 16",
"test 15",
"test 14",
"test 13",
"test 12",
"test 11",
"test 10",
"test 9",
"test 8",
"test 7",
"test 6",
"test 5",
"test 4",
"test 3",
"test 2",
"test 1"]}n