code: public static INDArray deserializeRawJson(String serializedRawArray) {
  
          //String cleanedRawArray = serializedRawArray.replaceAll("(?<=[\\d])(,)(?=[\\d])", "");
          String cleanedRawArray = serializedRawArray;
          JsonArray jsonArray = JSON_PARSER.parse(cleanedRawArray).getAsJsonArray();
  
          List<Integer> dimensions = new ArrayList<>();
          dimensions.add(jsonArray.size());
          getSizeMultiDimensionalArray(jsonArray, dimensions);
  
          return buildArray(dimensions, cleanedRawArray);
      }
docs: Deserialize an ndarray
  form json
  @param serializedRawArray
  @return