1.11M Members

removing xml tags from json data

 
0
 

I have question about json data. I can convert data from database to json data in asp.net web service but they come with xml tags. I need to remove string tags and xml information from this data. The appearance of the data is :
<?xml version="1.0" encoding="utf-8" ?>

<string xmlns="http://tempuri.org/">

[{"ID":10,"Duration":24235},{"ID":21,"Duration":9034},{"ID":12,"Duration":13681},{"ID":1,"Duration":23053},{"ID":13,"Duration":22863},{"ID":22,"Duration":57163}]

</string>

 
0
 

The best way is to change your webservice so it doesn't return those tags.
Post the code for your method.

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: