[This is preliminary documentation and is subject to change.]
The JSONWritingOptions type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | JSONWritingOptions | Initializes a new instance of the JSONWritingOptions class |
![]() | JSONWritingOptions(JSONWritingOptions) | Initializes a new instance of the JSONWritingOptions class |
Methods
Name | Description | |
---|---|---|
![]() | Configure | |
![]() | ![]() | Determines whether the specified object is equal to the current object. (Inherited from ![]() |
![]() | ![]() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ![]() |
![]() | ![]() | Serves as the default hash function. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | ![]() | Returns a string that represents the current object. (Inherited from ![]() |
Extension Methods
Fields
Name | Description | |
---|---|---|
![]() | ASCIITarget |
Specifies whether the target of serialization only deals with ASCII characeters,
so any non-ASCII character with code above 127 must be escaped with unicode escape sequence
|
![]() | IndentWidth |
Specifies character width of single indent level
|
![]() | ISODates |
Specifies whether DateTime must be encoded using ISO8601 format that look like "2011-03-18T14:25:00Z",
otherwise dates are encoded using "new Date(milliseconds_since_unix_epoch)" which is technically not a valid JSON, however
most JSON parsers understand it very well
|
![]() | MapSkipNulls |
If true, then does not write map keys which are null
|
![]() | MaxNestingLevel |
Sets a limit of object nesting, i.e. for recursive graph depth. Default is 0xff
|
![]() | MemberLineBreak |
Specifies whether every object member must be placed on a separate line for better readability
|
![]() | NLSMapLanguageISO |
Specifies language ISO code (3 chars) that is used (when set) by the NLSMap class,
so only entries for that particular language are included. When NLSMap contains entries for more than 1 language,
but user needs only one entry received for his/her selected language, this option can be set, then NLSMap will only inline
Name:Descr pair for that language. If a map does not contain an entry for the reequested lang then NLSMapLanguageISODefault
will be tried
|
![]() | NLSMapLanguageISODefault |
Specified language ISO default for NLSMap lookup, "eng" is used for default
|
![]() | ObjectLineBreak |
Specifies whether objects need to be separated by line brakes for better readability
|
![]() | Purpose |
Specifies the purpose of JSON serialization so the level of detail may be dynamically adjusted.
Depending on this parameter IJSONWritable implementors may include additional details
that are otherwise not needed
|
![]() | RowMapTargetName |
When set, specifies the target name for Row's fields when they are written as map
|
![]() | RowsAsMap |
When true, writes every row as a map {FieldName: FieldValue,...} instead of array of values
|
![]() | RowsetMetadata |
When true, writes rowset metadata (i.e. schema, instance id etc.)
|
![]() | SpaceSymbols |
Indicates whether a space must be placed right after the symbol, such as coma in array declaration or colon in member declaration for
better readability
|
Properties
Name | Description | |
---|---|---|
![]() ![]() | Compact |
Writes JSON without line breaks between members and no indenting. Suitable for data transmission
|
![]() ![]() | CompactASCII |
Writes JSON without line breaks between members and no indenting escaping any characters
with codes above 127 suitable for ASCII transmission
|
![]() ![]() | CompactRowsAsMap |
Writes JSON without line breaks between members and no indenting writing rows as maps(key:values) instead of arrays. Suitable for data transmission
|
![]() ![]() | PrettyPrint |
Writes JSON suitable for printing/screen display
|
![]() ![]() | PrettyPrintASCII |
Writes JSON suitable for printing/screen display
with codes above 127 suitable for ASCII transmission
|
![]() ![]() | PrettyPrintRowsAsMap |
Writes JSON suitable for printing/screen display writing rows as maps(key:values) instead of arrays
|
See Also