CrystalJson.SaveOptions

Namespace: SnowBank.Data.Json · enum

Implements: IComparable, ISpanFormattable, IFormattable, IConvertible

Options when save JSON to disk

Fields

Append

Append = 4

Append to the end of the file (create it if necessary), instead of overwriting it. Should only be used to JSON fragments, or JSON logs

AtomicSave

AtomicSave = 1

If the file already exists, save first into a temporary file, and swap it with the previous one in a single step

KeepBackup

KeepBackup = 2

If the file already exists, a backup copy will be created (with the ".bak" extension)

None

None = 0

Use the default options