public static <T> void writeTo(Writer writer, T message, Schema<T> schema,
            boolean numeric) throws IOException
    {
        final JsonGenerator generator = DEFAULT_JSON_FACTORY.createJsonGenerator(writer);
        try
        {
            writeTo(generator, message, schema, numeric);
        }
        finally
        {
            generator.close();
        }
    }
Serializes the {@code message} into a {@link Writer} using the given {@code schema}.
protostuff-json/src/main/java/io/protostuff/JsonIOUtil.java