1
Reply

how to convert an object from json format to integer format

charan sri

charan sri

Aug 16 2012 3:16 AM
1.9k
hi,
I am passing an array from view to the controller using json.stringify() method.
That value is passing to the controller and that is in
"\"[{\\\"id\\\":1 "id\\\":2}]\"" format.I think this is in json format,I want to convert this into {id:1,id:2} format.
I tried to convert this into string format using JsonConvert.serailizeObject(),
but it is displaying in "\"\\\"[{\\\\\\\"id\\\\\\\":1}]\\\"\""format.
 
can u tell me how can i convert into integer format

Answers (1)