Is there any way to let FJsonObjectConverter::UStructToJsonObjectString ignore properties in a struct that are equal to their default value?
I currently have a struct array which is filled by a grid based level editor. This is serialized for online level sharing. The struct contains various properties, including a bunch of integers which may be used for additional object settings. However, often these just have the value 0 as they are not set by the user. It’s kinda pointless to serialize this and make the file unnecessarily large.
I come from a C# background and there I can add an attribute to properties to ignore serialization when the property matches its default value. Is there any similar trick in UE4? I noted that UStructToJsonObjectString also contains a SkipFlags param, but this seems to be related to a fixed value for UPROPERTY and not conditional (value == 0).