code: public static org.tensorflow.framework.ConfigProto fromJson(String json) {
          org.tensorflow.framework.ConfigProto.Builder builder = org.tensorflow.framework.ConfigProto.newBuilder();
          try {
              JsonFormat.parser().merge(json,builder);
              org.tensorflow.framework.ConfigProto build = builder.build();
              ByteString serialized = build.toByteString();
              byte[] binaryString = serialized.toByteArray();
              org.tensorflow.framework.ConfigProto configProto = org.tensorflow.framework.ConfigProto.parseFrom(binaryString);
              return configProto;
          } catch (Exception e) {
              e.printStackTrace();
          }
  
          return null;
      }
docs: Convert a json string written out
  by {@link com.github.os72.protobuf351.util.JsonFormat}
  to a {@link org.bytedeco.tensorflow.ConfigProto}
  @param json the json to read
  @return the config proto to use