private StatDto decodeStatistics(int ind) { JsonHelper.Decimal decimal = jsonReader.readDecimal(FIELD.id.name()); int id = decimal == null ? ind : (int) decimal.getUnscaled(); int len = jsonReader.stringLength(FIELD.name.name()); String name = charBuffer.subSequence(0, len).toString(); Boolean b = jsonReader.readBoolean(FIELD.hist.name()); boolean histogram = b != null && b; return new StatDto(id, name, histogram); }