JSONWriter
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| jsonValueString | 1 | "..." |
| IsJsonNumber | 1 | true for the clr numeric primitive types that may be emitted as an unquoted json number. |
| jsonObjectString | 1 | {...} |
| jsonArrayString | 1 | [...] |
| escapeString | 1 | single-pass json string escaping. |
03 Fields
| Name | Overloads | Summary |
|---|---|---|
| leaveOpen | 1 | when true, only flush the internal text writer on dispose and leave the underlying stream open so that the caller can continue writing to it afterwards. |
04 Members
"..."
| Name | Type | Description |
|---|---|---|
obj | JsonValue | - |
Object)true for the clr numeric primitive types that may be emitted as an unquoted json number. any other type (char, guid, timespan, enum, uri, version, ...) must be serialized as a quoted string to stay valid json.
Int32){...}
| Name | Type | Description |
|---|---|---|
obj | JsonObject | - |
Int32)[...]
| Name | Type | Description |
|---|---|---|
arr | JsonArray | - |
String, Boolean)single-pass json string escaping. the json-grammar characters (\\, ", tab, cr, lf, backspace, form-feed) and every other control character below 0x20 are always escaped. when escapeAllNonAscii is true, each non-ASCII character (>= 0x80, including every utf-16 code unit from the supplementary planes) is escaped as \uXXXX as well.
when true, only flush the internal text writer on dispose and leave the underlying stream open so that the caller can continue writing to it afterwards. when false (default), the text writer is disposed which also closes the underlying stream.