views:

30

answers:

0

I am using the WCF Collection Service in asp.net, Just to learn I am using the SampleItem.

The xml looks like this in the web browser:

- <ItemInfoList xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;
<ItemInfo>


<EditLink>http://localhost:8080/Service.svc/A&lt;/EditLink&gt; 
- <Item>


<Value>A</Value> 
  </Item>
  </ItemInfo>
- <ItemInfo>
  <EditLink>http://localhost:8080/Service.svc/B&lt;/EditLink&gt; 
- <Item>
  <Value>B</Value> 

and so on... returning in json the url would look like this: http://localhost:8080/Service.svc/?format=json

But there is a problem, it gives me ItemInfoList.. iteminfo, editlink .. so this gives me error in my android applications cause it can not handle this data as JsonOBject. this is how it looks like in the json:

[{"EditLink":"http:\/\/localhost:8080\/Service.svc\/A?format=json","Item":{"Value":"A"}},{"EditLink":"http:\/\/localhost:8080\/Service.svc\/B?format=json","Item":{"Value":"B"}},{"EditLink":"http:\/\/localhost:8080\/Service.svc\/C?format=json","Item":{"Value":"C"}}]

How can I make this work? I want to get the item, with the values A, B and C