Ved Prakash

Ved Prakash

  • NA
  • 174
  • 30k

DateTime property is set to null while deserializing

Dec 19 2017 2:39 AM
I have following json
 
{"Data":[{"MonthYear":"2017-03-01T00:00:00"},{"MonthYear":"2017-11-01T00:00:00"},{"MonthYear":"2017-12-01T00:00:00"}],"Filter":{"Page":{"PageSize":20,"PageIndex":1,"TotalRecords":3,"SortOrder":1,"OrderBy":null},"SearchText":null},"Message":{"MessageCode":200,"MessageType":1,"Message":"Success","MessageSource":"/abc"}}
 
when I deserialize that json using json.Net Library then the MonthYear property is set to null.
 
Please help me to resolve that issue.
 
Thanks.

Answers (2)