Manually write JSON to an io.Writer