_writeObject

private fnvoid _writeObject(W)(const var value, ref W buf, const JsonWriteOptions opts, uint depth, ref JsonWriteScratch scratch) @safe

Write an object value.

Keys come from the lightweight keys() view and members from get() instead of as!(var[string]), which duplicated the whole associative array on every serialization (N037).