I have made a simple web service which I return a list of values, this
is the code:

[WebMethod]
    [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
    public string HelloWorld() {

        string[][] JaggedArray = new string[5][];
           int i = 0;
           for (int r = 0; r < 5; r++)
           {
               JaggedArray[i] = new string[] { "Title" + r, "Body" +
r };
               i = i + 1;
           }

        JavaScriptSerializer js = new JavaScriptSerializer();
        string strJSON = js.Serialize(JaggedArray);
           return strJSON;
    }

The string returns this:

[["Title0","Body0"],["Title1","Body1"],["Title2","Body2"],
["Title3","Body3"],["Title4","Body4"]]

In my Android app I have used ksoap to call the service and return the
string, but I don't know how to turn it back in to an array. Can
anyone help?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to