Energy Core Library
Energy.Base.Json Class Reference

JSON support More...

Classes

class  JsonArray
 
class  JsonBoolean
 
class  JsonLayout
 
class  JsonNumber
 
class  JsonObject
 
class  JsonString
 
class  JsonValue
 

Static Public Member Functions

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...
 

Detailed Description

JSON support

Member Function Documentation

◆ 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
textText 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
text
Returns

The documentation for this class was generated from the following file: