The engine's fmt(v): strings as they are, everything else as JSON (undefined prints as such).
fmt(v)
undefined
String fmt(Object? v) => v is String ? v : (jsStringify(v) ?? 'undefined');