Welcome! Log In Create A New Profile

Advanced

[WD23] Don't Serialize Null Members of Class

[WD23] Don't Serialize Null Members of Class
December 19, 2019 09:25PM
Hello everyone.

I'm using the Serialize function (Serialize documentation) to generate a JSON representation of an object. I'm wondering if it's possible to tell WebDev to avoid serializing the members of a class that are Null ?

Thank you !

Anthony Blanchette-Potvin
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: