Struct JSONString

Represents a JSON string literal with lazy (un)escaping.

struct JSONString(String) ;

Constructors

NameDescription
this Constructs a JSONString from the given string value (unescaped).

Properties

NameTypeDescription
anyValue[get] Tuple!(const(String),bool)Returns the string value in the form that is available without allocating memory.
rawValue[get, set] StringThe raw (escaped) string literal, including the enclosing quotation marks.
value[get, set] StringThe decoded (unescaped) string value.

Methods

NameDescription
opCmp Support relational comparisons
opEquals Support equality comparisons
toHash Support use as hash key