Json deserialize in Silverlight on Firefox browser

Jun 22, 2012 at 5:29 PM

I have a SL5 project that uses Json .net 4.5 release to serialize / deserialize objects that comes form the server using REST APIs.

On IE all works just fine, so does the chorme, however on firefox things don;t work. So I debugged on FireFox to figure out that when I try to deserialize the object using Json.net, things don't work out - here is a sample -

I got these values from Fiddler-

What I get in IE (REST call) -

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=871EEEB9C72CC0F21A8CA5505C036454; Path=/TWWebApp/; HttpOnly
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 22 Jun 2012 15:36:41 GMT

216
{"Response":{"status":"SUCCESS","errorText":null,"entityId":null,"entities":[{"userId":12,"firstName":"Romen","lastName":"Sood","userStatus":"INACTIVE","hostId":2,"subOrgId":7,"userLoginId":"Rome12","authenticationKey":"1234","mobileNo":"9000000007","emailId":null,"lastLoginTime":"22/06/2012 21:01:13","accessDeviceId":"352337041825209","hostName":"Demo Domain","subOrgName":"Demo Domain HeadOffice","subOrgCityId":3168,"subOrgCityName":"Mumbai","hostLogoUrl":"","headOffice":true,"serviceProvider":true,"serviceProviderHostId":2}]}}
0

What I get in firefox (REST call) -

 

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/xml;q=0.9;charset=UTF-8
Transfer-Encoding: chunked
Date: Fri, 22 Jun 2012 15:31:16 GMT

390
<com.outdu.twcore.jsonconverter.transiententity.Response><status>SUCCESS</status><entities class="java.util.Collections$SingletonList"><element class="userEntity"><userId>12</userId><firstName>Romen</firstName><lastName>Sood</lastName><userStatus>INACTIVE</userStatus><hostId>2</hostId><subOrgId>7</subOrgId><userLoginId>Rome12</userLoginId><authenticationKey>1234</authenticationKey><mobileNo>9000000007</mobileNo><lastLoginTime class="sql-timestamp">2012-06-22 21:00:13.079</lastLoginTime><accessDeviceId>352337041825209</accessDeviceId><hostName>Demo Domain</hostName><subOrgName>Demo Domain HeadOffice</subOrgName><subOrgCityId>3168</subOrgCityId><subOrgCityName>Mumbai</subOrgCityName><hostLogoUrl></hostLogoUrl><headOffice>true</headOffice><serviceProvider>true</serviceProvider><serviceProviderHostId>2</serviceProviderHostId></element></entities></com.outdu.twcore.jsonconverter.transiententity.Response>
0

 

Any ideas? Really appreciate it.

 

Regards

Baliga

Dec 4, 2012 at 7:21 AM

JSON View Plug-in is needs to be installed in FireFox in order to sovle this problem

 

Regards

Baliga