mvc .net visual studio 2012 rest api xml to json -


i have return me result

this xml file not appear have style information associated it. document tree shown below. <fechaupdate xmlns:i="http://www.w3.org/2001/xmlschema-instance" xmlns="http://schemas.datacontract.org/2004/07/imagenesgraciosas2.models"> <fechasegundos>635902782941643690</fechasegundos> <fechasegundosbc>635902779020935030</fechasegundosbc> <fechaupdateid>1</fechaupdateid> </fechaupdate> 

i add image too

enter image description here

well, when i

if use content-type json return me attributes (not object)

{ "fechaupdateid": 1 "fechasegundos": 635902782941643600 "fechasegundosbc": 635902779020935000 } 

i add image

enter image description here

(i believe) result be

{   "fechaupdate": {     "fechasegundos": "635902782941643690",     "fechasegundosbc": "635902779020935030",     "fechaupdateid": "1"   } } 

because when execute on java

    fechaupdate dto  = new gson().fromjson(json, fechaupdate.class); 

all attributes in 0's (i believe) last json convert fine.

how can return last result?


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -