}
public void write(Map map, OutputStream os) throws IOException {
ObjectMapper mapper = new ObjectMapper();
JsonGenerator gen = jsonFactory.createJsonGenerator(os);
gen.enable(JsonGenerator.Feature.ESCAPE_NON_ASCII);
mapper.writeValue(gen, map);
gen.close();
}
public void write(List list, OutputStream os) throws IOException {