5
Answers

how to add json data into model in mvc 4

Hi , 
 this is my code
 
StreamReader reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
string message = reader.ReadToEnd();
 
my model name is 'DocumentManagementD' .
 
this 'message' having json data . i need to bind this json data to model in mvc 4 please help me.
 
that json data is :
 
{
"ResponseResult": [
{
"DocumentNumber": "123",
"DocumentName": "Resume",
"DocumentDescription": "<catalog><book id=\"bk101\"><author>Gambardella, Matthew</author><title>XML Developer's Guide</title><genre>Computer</genre><price>44.95</price><publish_date>2000-10-01</publish_date><description>An in-depth look at creating applications \r\n with XML.</description></book></catalog>"
}
]
}
 
 
Answers (5)