code: public static NeuralNetConfiguration fromYaml(String json) {
          ObjectMapper mapper = mapperYaml();
          try {
              NeuralNetConfiguration ret = mapper.readValue(json, NeuralNetConfiguration.class);
              return ret;
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
      }
docs: Create a neural net configuration from json
  
  @param json the neural net configuration from json
  @return