i have list of object and i want convert in specific formatted json as follows..
{
"Result":"OK",
"Records":[
{"PersonId":1,"Name":"Benjamin Button","Age":17,"RecordDate":"\/Date(1320259705710)\/"},
{"PersonId":2,"Name":"Douglas Adams","Age":42,"RecordDate":"\/Date(1320259705710)\/"},
{"PersonId":3,"Name":"Isaac Asimov","Age":26,"RecordDate":"\/Date(1320259705710)\/"},
{"PersonId":4,"Name":"Thomas More","Age":65,"RecordDate":"\/Date(1320259705710)\/"}
]
}
my current code is
and my current output is
+++[[100,"CWR",null,null,"11","B5A","IC",0,null,null,null,null,null,null],[20,"LO",null,null,"11","B5A","IH",0,null,null,null,null,null,null],[15,"RP",null,null,"555","B5A","IC",0,null,null,null,null,null,null],[15,"CWR",null,null,"22","B5A","IC",0,null,null,null,null,null,null]]
is there any solution ??