Writer Options - Mrcarrot1/KarrotObjectNotation GitHub Wiki

As of KON 1.0, each instance of the KONWriter class contains an instance of the KONWriterOptions class. This provides configuration options for various writer functions. Below is a list of available options.

  • CaseWriteMode NodeNameWriteMode: Determines the case the writer will use when writing node names. Default value: CaseWriteMode.KeepOriginal.

  • CaseWriteMode KeyWriteMode: Determines the case the writer will use when writing keys. Default value: CaseWriteMode.KeepOriginal.

  • CaseWriteMode ValueWriteMode: Determines the case the writer will use when writing values. Default value: CaseWriteMode.KeepOriginal.

  • bool Inline: Determines whether the writer will write KON nodes and JSON objects on a single line. Default value: false.

  • bool ArrayInline: Determines whether the writer will write KON and JSON arrays on a single line. Default value: true.

  • bool AllExplicitTypes: If true, the writer will mark the type on every value and array element. Otherwise, it will do so only when the implicit typing system would have incorrectly read the type. Default value: false.