serializeTextPretty

Ion serialization function with pretty formatting.

  1. string serializeTextPretty(V value, int serdeTarget)
    string
    serializeTextPretty
    (
    string sep = "\t"
    V
    )
    (
    auto scope ref const V value
    ,
    int serdeTarget = SerdeTarget.ion
    )
  2. template serializeTextPretty(string sep = "\t")

Examples

static struct S { int a; }
assert(S(4).serializeTextPretty!"    " == "{\n    a: 4\n}");

Meta