locked
JsonObject.Lookup throws an exception if key is not present

    General discussion

  • JsonObject.Lookup throws an exception if key is not present. Wouldnt it be better for it to return null ptr instead.

    I have Json where keys may not be neccesarily present. I have to surrround every lookup with a try catch!

    Thursday, January 26, 2012 11:00 PM

All replies

  • That is a great suggestion. Have you sent that feedback thru the Connect site yet? If not, please do.

    Instructions for the feedback tool are here.

     

    Thanks,

    -David

     

    Monday, January 30, 2012 8:30 PM
    Moderator