Member Name should not get serialized

Apr 16, 2012 at 12:38 PM
Edited Apr 16, 2012 at 2:56 PM

In my project I have to send a very specific JSON Request to an oracle server to receive a response;
at the moment I am sending the json string :

`{\"id\":\"1\",\"method\":\"getOverviewInfo\",\"Params\":{\"overviewID\":\"0000004297\",\"overviewType\":\"Stock Items\",\"AORParams\":null,\"arrOptions\":{\"columnInfo\":\"1;100;1;1#\",\"orderInfo\":\"1;0;0#\"}}}"`

Coming from this class :

 public class SendOverview    {              

public string id   { get; set;}
                public string method { get; set;}
                public SendOV Params {get; set;}
    }

 public class SendOV    {               

public string overviewID { get; set; }
        public string overviewType { get; set; }
        public string AORParams { get; set; }
        public SentDatas arrOptions { get; set; }

    }   

public class SentDatas    {       

public string columnInfo { get; set; }
        public string orderInfo { get; set; }
    }

Now my question is, can I possibly adjust the request string to remove the member names from the Params array, so instead of 
"overviewID" = "xxxx","overviewType" = "xxxx"....... 

It should be
"xxxx","xxxx"

Filled in the json query : 

{\"id\":\"1\",\"method\":\"getOverviewInfo\",\"Params\":{\"0000004297\","Stock Items\",null,{\"columnInfo\":\"1;100;1;1#\",\"orderInfo\":\"1;0;0#\"}}}"`

{    "id": "1",    
"method": "getOverviewInfo",    
"Params": {        
"0000004297",        
"Stock Items",        
null,        
{            
"columnInfo": "1;100;1;1#",            
"orderInfo": "1;0;0#"        
}    
}
}