Hi 

I was just wondering if you managed to solve this issue? 

I'd appreciate your help.


On Tuesday, March 6, 2012 5:20:45 AM UTC+13, andyjohnson wrote:
>
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to