Json.this

Constructor taking a string for fast slicing.

JSON strings without escape sequences can be returned as slices.

  1. this()
  2. this(string text, Flag!"simdPrep" simdPrep)
    struct Json(uint vl = validateUsed, bool validateUtf8 = vl > trustedSource)
    nothrow
    this
    (
    string text
    ,
    Flag!"simdPrep" simdPrep = Yes.simdPrep
    )
    if (
    vl > trustedSource ||
    !validateUtf8
    )
  3. this(const(char)[] text, Flag!"simdPrep" simdPrep)

Parameters

text string

The JSON text to parse.

simdPrep Flag!"simdPrep"

Set this to No.simdPrep to indicate that text is already suffixed by 16 zero bytes as required for SIMD processing.

Meta