code: public static double[] getDoubleArray(@javax.annotation.Nonnull final JsonArray array) {
      return IntStream.range(0, array.size()).mapToDouble(i -> array.get(i).getAsDouble()).toArray();
    }
docs: Get double array double [ ].
  
  @param array the array
  @return the double [ ]