[SOLVED] jsonparser - Cannot convert data from Null value lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- tudi_x · 2017-12-06 16:08 hi All, please advise if for the jsonparser from standard library there is an option to ignore null values. rfc 4627 allows null but indeed the easiest to say is just for a string conversion to ''. i see that the approach for null values for other de-serealizers is to have an ignore option. my JSON is as below: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {"away":fal se,"organisation":"xxx","host":"xxx","loggedIn":true,"user":"xxx","idl eTime":163,"qubicle":"xxx","name":null,"version":"xxx","windowState":" hidden"} thank you ---------------------------------------------------------------------- Leledumbo · 2017-12-06 19:50 There's none as far as the source code is concerned. Still, I don't understand why you need such a functionality while IsNull method is provided for every node. ---------------------------------------------------------------------- tudi_x · 2017-12-07 07:58 thank you i was not aware of the isNull check. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i if not jsData.FindPath('user').IsNull then              _Model.TheStatus.UserCode := jsData.FindPath('user').AsString; the above works and will work with it. nevertheless i feel that an ignore option is more productive than having isNull check at field level. ---------------------------------------------------------------------- taazz · 2017-12-07 08:05 Quote from: tudi_x on December 07, 2017, 08:58:09 amnevertheless i feel that an ignore option is more productive than having isNull check at field level. errr...... No. You can't ignore it if you do not know its null so the field level check will always run. ---------------------------------------------------------------------- tudi_x · 2017-12-07 08:31 by productive i meant for the programmer to just set an option. there is only an option to set when defining the parser and not x fields to update with the isNull condition check. less lines of code to write - faster delivery. (i was not referring to the performance angle where the check would need to run for each field due to the option.)