@Test
public void testArray3() throws Exception {

	StringWriter result = new StringWriter();
	JsonXMLStreamWriter writer = createXmlStreamWriter(result);
	writer.writeStartDocument();
	writer.writeStartElement("alice");
	writer.writeStartArray("bob");
	writer.writeStartElement("bob");
	writer.writeCharacters("charlie");
	writer.writeEndElement();
	writer.writeEndArray();
	writer.writeEndElement();
	writer.writeEndDocument();
	writer.close();
	Assert.assertEquals("{\"alice\":{\"bob\":[\"charlie\"]}}", result.toString());
}