[CLOSED] null value exception thrown when deserializing null value in JSON

  1. #1

    [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

  2. #2

    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.

Similar Threads

  1. Combobox null value exception
    By softlabsgroup.support in forum 1.x Help
    Replies: 1
    Last Post: Jun 18, 2012, 10:21 PM
  2. Replies: 2
    Last Post: Jan 13, 2012, 4:12 AM
  3. Replies: 0
    Last Post: Dec 01, 2011, 6:43 AM
  4. Replies: 1
    Last Post: Sep 09, 2011, 3:00 PM
  5. [CLOSED] How to deal with a null date in a JSON Web Service?
    By dev in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 31, 2010, 11:51 PM

Posting Permissions