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.
-
CaseWriteModeNodeNameWriteMode: Determines the case the writer will use when writing node names. Default value:CaseWriteMode.KeepOriginal. -
CaseWriteModeKeyWriteMode: Determines the case the writer will use when writing keys. Default value:CaseWriteMode.KeepOriginal. -
CaseWriteModeValueWriteMode: Determines the case the writer will use when writing values. Default value:CaseWriteMode.KeepOriginal. -
boolInline: Determines whether the writer will write KON nodes and JSON objects on a single line. Default value:false. -
boolArrayInline: Determines whether the writer will write KON and JSON arrays on a single line. Default value:true. -
boolAllExplicitTypes: 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.