code: public String toJSONString() {
          
          String rawdata = stats.stream().sorted(Comparator.comparingInt(UStats::getIndex))
                  .map(sr -> sr.toJSONString())
                  .collect(Collectors.joining(",\n    ", "[\n    ", "\n ]"));
          
          String fields = Stream.of(UStats.getJSONFields()).collect(Collectors.joining("\", \"", "[\"", "\"]"));
          
          String models = Stream.of(ScaleDetect.rank(this)).map(me -> me.toJSONString()).collect(Collectors.joining(",\n    ", "[\n    ", "\n  ]"));
          
          return String.format("{ title: \"%s\",\n  nano_tick: %d,\n  models: %s,\n  fields: %s,\n  data: %s\n}",
                  title, UUtils.getNanoTick(), models, fields, rawdata);
      }
docs: Get the data as JSON data in an array format (<code>[ [scale,nanos], ...]</code>
  @return a JSON formatted string containing the raw data.