@Test
    public void testJSONWriterEmptyArray() throws IOException {
        OutputStream out = new ByteArrayOutputStream();
        JSONWriter w = new JSONWriter(out);
        w.beginArray();
        w.endArray();

        assertEquals("[]",out.toString());
    }
Tests the JSON writer

@author bratseth
vespajlib/src/test/java/com/yahoo/text/JSONWriterTestCase.java