public void test_1() throws Exception {
StringWriter out = new StringWriter();
JSONWriter writer = new JSONWriter(out);
writer.writeStartObject();
writer.writeKey("id");
writer.writeValue(33);
writer.writeEndObject();
writer.flush();
Assert.assertEquals("{\"id\":33}", out.toString());