public static <T extends JsonTemplate> T readJsonFromFile(Path jsonFile, Class<T> templateClass)
      throws IOException {
    try (InputStream fileIn = Files.newInputStream(jsonFile)) {
      return objectMapper.readValue(fileIn, templateClass);
    }
  }
Deserializes a JSON file via a JSON object template.

@param <T> child type of {@link JsonTemplate}
@param jsonFile a file containing a JSON string
@param templateClass the template to deserialize the string to
@return the template filled with the values parsed from {@code jsonFile}
@throws IOException if an error occurred during reading the file or parsing the JSON
jib-core/src/main/java/com/google/cloud/tools/jib/json/JsonTemplateMapper.java