Topic: json return data wrapper in xml

I created a webservice in to receive the uploads from flash, etc for testing.  I submit back json data {"jsonrpc" : "2.0", "result" : null, "id" : "id"}
to say all ok, but response back to bind event

Uploader.bind('FileUploaded', function (Up, File, Response) {
        var obj = eval('(' + Response + ')'); // parse JSON response }

errrors - data looks like:
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="">{"jsonrpc":"2.0","result":"null","id":""}</string>

I have seen this before when jquery submits data without specifying datatype:json for return. Is that similar here? Any suggestions besides regex replace on return?


Re: json return data wrapper in xml

It's possible in .NET to do a pure JSON web service.