JSON support
More...
|
| static string | Escape (string text) |
| | Escape JSON characters and include string in double quotes. Null strings will be represented as "null". More...
|
| |
| static string | Strip (string text) |
| | Strip quotes and unescapes JSON string to text. More...
|
| |
◆ Escape()
| static string Energy.Base.Json.Escape |
( |
string |
text | ) |
|
|
static |
Escape JSON characters and include string in double quotes. Null strings will be represented as "null".
Backspace is replaced with Form feed is replaced with Newline is replaced with
Carriage return is replaced with Tab is replaced with Double quote is replaced with " Backslash is replaced with \
- Parameters
-
| text | Text to be escaped for JSON string |
- Returns
- JSON string
◆ Strip()
| static string Energy.Base.Json.Strip |
( |
string |
text | ) |
|
|
static |
Strip quotes and unescapes JSON string to text.
- Parameters
-
- Returns
The documentation for this class was generated from the following file: