_writeJSON5Impl
private fn
void _writeJSON5Impl(const var value, ref Appender!string buf, const Json5WriteOptions opts,
uint depth, ref Json5WriteScratch scratch) @safeInternal recursive writer implementation shared by JSON5 and JSON output.