Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Properties | List of all members
SyncJson.Options.ForWriter Class Reference

Source file:

Properties

bool Minify [set]
 This property provides a quick way to set the Newline, Indent and SpaceAfterColon properties. When true, the JSON output will have minimal spaces and no newlines. When set to false, these properties are reset to defaults. More...
 
string Newline [get, set]
 String that represents a newline. This string should be "\n" (Unix/Windows/Mac), "\r" (old-style Mac), or "\r\n" (Windows/DOS). Also, the empty string "" can be used to disable both newlines and indentation. Default: Environment.NewLine More...
 
string Indent = Environment.NewLine [get, set]
 A string that is used to indent each line for each level of object nesting. This property, which has no effect if Newline == "", should be either "\t" or zero or more spaces. Default: "\t" More...
 
bool SpaceAfterColon = "\t" [get, set]
 Whether to write a space after : in a key-value pair. More...
 
bool EscapeUnicode = false [get, set]
 If this is true, Unicode characters above U+009F are written using JSON escapes (e.g. instead of £). Default: false. Note: control characters are always written as escape sequences because the JSON standard does not allow control characters. More...
 
int MaxIndentDepth = false [get, set]
 If the recursion depth exceeds this number when writing JSON, the number of indents stops increasing. More...
 
bool CharListAsString = 63 [get, set]
 If this property is true, or if this property is null and NewtonsoftCompatibility is off, character lists and character arrays are written as strings. More...
 
int InitialBufferSize = null [get, set]
 Initial size of the output buffer when writing JSON (default: 1024). This property is ignored if you provide your own buffer to SyncJson.NewWriter. More...
 

Property Documentation

bool SyncJson.Options.ForWriter.CharListAsString = 63
getset

If this property is true, or if this property is null and NewtonsoftCompatibility is off, character lists and character arrays are written as strings.

bool SyncJson.Options.ForWriter.EscapeUnicode = false
getset

If this is true, Unicode characters above U+009F are written using JSON escapes (e.g. instead of £). Default: false. Note: control characters are always written as escape sequences because the JSON standard does not allow control characters.

string SyncJson.Options.ForWriter.Indent = Environment.NewLine
getset

A string that is used to indent each line for each level of object nesting. This property, which has no effect if Newline == "", should be either "\t" or zero or more spaces. Default: "\t"

int SyncJson.Options.ForWriter.InitialBufferSize = null
getset

Initial size of the output buffer when writing JSON (default: 1024). This property is ignored if you provide your own buffer to SyncJson.NewWriter.

int SyncJson.Options.ForWriter.MaxIndentDepth = false
getset

If the recursion depth exceeds this number when writing JSON, the number of indents stops increasing.

bool SyncJson.Options.ForWriter.Minify
set

This property provides a quick way to set the Newline, Indent and SpaceAfterColon properties. When true, the JSON output will have minimal spaces and no newlines. When set to false, these properties are reset to defaults.

string SyncJson.Options.ForWriter.Newline
getset

String that represents a newline. This string should be "\n" (Unix/Windows/Mac), "\r" (old-style Mac), or "\r\n" (Windows/DOS). Also, the empty string "" can be used to disable both newlines and indentation. Default: Environment.NewLine

bool SyncJson.Options.ForWriter.SpaceAfterColon = "\t"
getset

Whether to write a space after : in a key-value pair.