serializeToFghj

FGHJ serialization function

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

Examples

import fghj;
import mir.conv: to;

struct S
{
    string foo;
    uint bar;
}

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

Meta