serializeToAsdf

ASDF serialization function

serializeToAsdf
(
V
)
(
auto ref V value
,
size_t initialLength = 32
)

Examples

import asdf;
import mir.conv: to;

struct S
{
    string foo;
    uint bar;
}

assert(serializeToAsdf(S("str", 4)).to!string == `{"foo":"str","bar":4}`);

Meta