@Test
public void arrayType() throws OpenDataException, ParseException {

    ArrayType type = new ArrayType(2,STRING);
    String json = "[ \"hello\", \"world\" ]";
    for (Object element : new Object[] { json, new JSONParser().parse(json) }) {
        Object[] data = (Object[]) converter.convertToObject(type,element);
        assertEquals(data.length,2);
        assertEquals(data[0],"hello");
        assertEquals(data[1],"world");
    }
}