You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a situation where JSON strings omit default values. For instance in the code below, if interval is omitted or less than 0, it should be set to 100. What can I do with dumpHook/skipHook to omit default values when I serialize my objects?
I have a situation where JSON strings omit default values. For instance in the code below, if
interval
is omitted or less than 0, it should be set to 100. What can I do withdumpHook
/skipHook
to omit default values when I serialize my objects?The output of the above is:
The text was updated successfully, but these errors were encountered: