final Object data = bundle.data(j);
// TODO: refactor to JSONFormatters!
// Format a NumberVector
if(data instanceof NumberVector) {
NumberVector<?, ?> v = (NumberVector<?, ?>) data;
re.appendKeyArray(bundle.meta(j));
for(int i = 0; i < v.getDimensionality(); i++) {
re.append(v.doubleValue(i + 1));
}
re.closeArray();
}