When using json like below, I get undefined references. Perhaps import statements inside a function do not export for the linker? When I move the two lines to the top of the file it works. This is on linux.

writeln("As json ", serializeToJson(c));

Thanks,
Dan

151	import std.utf;
152	import vibe.utils.string;

$ rdmd -g -w -property -I/.../vibe.d/source -L-leventpthreads -L-levent -L-lssl -L-lcrypto .../client.d
/tmp/.rdmd-1000/rdmd-client.d-C6514453AD5E608E1F0464559AC6864F/objs/client.o: In function `
D4vibe6stream6stream11readAllUtf8FC4vibe6stream6stream11InputStreambmZAya':
/.../vibe.d/source/vibe/stream/stream.d:154: undefined reference to _D4vibe5utils6string12sanitizeUTF8FxAhZAya'<br>/.../vibe.d/source/vibe/stream/stream.d:154: undefined reference to D4vibe5utils6string12stripUTF8BomFAyaZAya'
/.../vibe.d/source/vibe/stream/stream.d:157: undefined reference to `
D4vibe5utils6string12stripUTF8BomFAyaZAya'
collect2: ld returned 1 exit status
--- errorlevel 1