JsonSerializerSwift icon indicating copy to clipboard operation
JsonSerializerSwift copied to clipboard

Ability to exclude null values in JSON from model object

Open shahdhiren opened this issue 8 years ago • 1 comments

Hi,

First of thanks a lot for such an effort to build extremely useful library. It is indeed a very helpful.

This is a feature request. Can you please include one property to configure exclusion of Null properties from model object while creating the JSON string.

Let me know if I can be of any help.

shahdhiren avatar Sep 12 '16 18:09 shahdhiren

Hi shahdiren. Thanks for your interest. Glad to know the library helps.

Do you mean excluding the property totally if the value is null? I may look into it at some point, you're welcome to try out ourself and submit a pull request. However do note that I will only accept request if it's unit tested.

peheje avatar Sep 12 '16 20:09 peheje