[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
RE: [CLOSED] null value exception thrown when deserializing null value in JSON
Hi,
Please provide test sample which demonstrates the problem.
Also it can be useful to ask about it on the Newtonsoft forum because the problem related with Newtonsoft toolkit (not Ext.Net)
NOTE: No further information provided, marking as [CLOSED] until updated.