enum class DisabledMemberPolicy { ConvertToComment, Keep, Drop };

JSON and JSON5 have no -- syntax, so when Dialect::Json or Json5 meets a disabled member it applies this policy. No effect on Dialect::Fson, which always writes --key: value literally.

Policyfson-check flagJson5Json
ConvertToComment(default)synthesize a comment rendering key: value — one // line for a scalar, one per source line for a containerbehaves like Drop (JSON cannot carry a comment)
Keep--keepemit as an ordinary member, no -- prefixsame — may produce a duplicate key when a disabled member shadows an active one
Drop--drop-disabledemit nothingemit nothing
FsonWriter w;
w.setDialect( FsonWriter::Dialect::Json );
w.setDisabledMemberPolicy( FsonWriter::DisabledMemberPolicy::Keep );
// --debug: true   →   "debug": true

The deprecated setKeepDisabledMembers(bool) maps trueKeep, falseConvertToComment.