Moving jsonwriter to its own submodule