Json.this

Constructor taking a const char[].

JSON strings allocate on the GC heap when returned.

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

Parameters

text char[]

The JSON text to parse.

Meta