private static void convertJmhJsonData(InputStream specIn, InputStream jmhIn, OutputStream out) throws IOException {
    List<?> chainrConfig = JsonUtils.jsonToList(specIn);
    Chainr chainr = Chainr.fromSpec(chainrConfig);
    List<Object> input = JsonUtils.jsonToList(jmhIn);
    Object jsonOutput = chainr.transform(input);
    out.write(JsonUtils.toJsonString(jsonOutput).getBytes(StandardCharsets.UTF_8));
  }
Load the JSON template data and convert it.
benchmark-graphs/src/main/java/org/conscrypt/graphgen/Main.java