Hardi Shah
Hardi Shah

Reputation: 133

Parsing server side response

I have Webservice in .net that responds me

For parsing this kind of rsponse i have referred Android Json Parsing Tutorial.
Any help will be appreciated.But still getting JSONException. Thanks in advance.

Upvotes: 0

Views: 66

Answers (1)

Syed Shahed Kareem
Syed Shahed Kareem

Reputation: 11

It Seems that your Json format is correct but It shouldn't have xml tag in it.Dont use WebMethod. Invoke the method with tag like this

[WebInvoke(Method = "GET",
       RequestFormat = WebMessageFormat.Json,
       ResponseFormat = WebMessageFormat.Json
      )]

Upvotes: 1

Related Questions