Json.read

Reads a plain old data struct or null off the JSON text.

  1. string read(bool allowNull)
  2. T read()
  3. N read()
  4. T read()
  5. T read()
    struct Json(uint vl = validateUsed, bool validateUtf8 = vl > trustedSource)
    T
    read
    (
    T
    )
    ()
    if (
    is(PointerTarget!T == struct) &&
    __traits(isPOD, PointerTarget!T)
    )
    if (
    vl > trustedSource ||
    !validateUtf8
    )
  6. T read()
  7. T read()
  8. T read()
  9. bool read()

Parameters

T

Type of struct pointer that should be returned.

Return Value

Type: T

A pointer to a newly filled struct of type T on the GC heap.

Meta