JsonValue jsonArray = new ArrayValue();
int length = Array.getLength(array);
if (t == Types.ARRAY_BOOLEAN)
{
for (int i = 0; i < length; i++)
jsonArray.addElement(new BooleanValue(Array.getBoolean(array, i)));
}
else if (t == Types.ARRAY_BYTE)
{
for (int i = 0; i < length; i++)
jsonArray.addElement(new LongValue(Array.getByte(array, i)));