map.put(int[].class, new IntArrayJsonSerializer());
map.put(long[].class, new LongArrayJsonSerializer());
map.put(double[].class, new DoubleArrayJsonSerializer());
map.put(float[].class, new FloatArrayJsonSerializer());
map.put(boolean[].class, new BooleanArrayJsonSerializer());
map.put(byte[].class, new ByteArrayJsonSerializer());
map.put(Integer[].class, new ArraysJsonSerializer<Integer>() {
@Override
protected int getLength(Integer[] array) {
return array.length;