Jun 08, 2010, 4:51 AM
[CLOSED] null value exception thrown when deserializing null value in JSON
<DIV class=discussionListContent id=ctl00_ctl00_MasterContent_Content_PostRepeater_ ctl00_BodyDiv>Hi Friends
I am trying to deserialize a hidden control field into a json object the code is as follows
Dim settings As New Newtonsoft.Json.JsonSerializerSettings()
settings.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore
Return Newtonsoft.Json.JsonConvert.DeserializeObject(Of testContract)(txtHidden.Text, settings)
This was working in coolite .8 but with coolite 1.0
I am getting the following exception. value cannot be null parameter name s:
I even added the following lines but it still does not work out. Please help
settings.MissingMemberHandling = Newtonsoft.Json.MissingMemberHandling.Ignore settings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore settings.ObjectCreationHandling = Newtonsoft.Json.ObjectCreationHandling.Replace
Do any of you have faced this error before?
Thanks