code: public final static <T> T readJson(String json, Class<T> clazz)
      {
          ObjectMapper mapper = new ObjectMapper();
          try
          {
              if (json != null && !json.isEmpty())
              {
                  return mapper.readValue(json, clazz);
              }
              else
              {
                  LOGGER.error("JSON is null or empty.");
                  throw new KunderaException("JSON is null or empty.");
              }
          }
          catch (IOException e)
          {
              LOGGER.error("Error while converting in json{} presentation{}.", json, e);
              throw new KunderaException("Error while mapping JSON to Object. Caused By: ", e);
          }
  
      }
docs: Read json.
  
  @param <T>
  the generic type
  @param json
  the json
  @param clazz
  the clazz
  @return the t