Json.this

Constructor taking a const char[].

JSON strings allocate on the GC heap when returned.

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

Parameters

text const(char)[]

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