code: public synchronized <T> T fromJson(String jsonString, Class<T> clazz)
              throws JsonException {
          if (jsonString == null) {
              return null;
          }
          Reader reader = new StringReader(jsonString);
          try {
              return mapper.readValue(reader, clazz);
          } catch (JsonParseException e) {
              throw new JsonException(e.getMessage(), e);
          } catch (JsonMappingException e) {
              throw new JsonException(e.getMessage(), e);
          } catch (IOException e) {
              throw new JsonException(e.getMessage(), e);
          }
      }
docs: Converts a given string into an object of the given class.
  
  @param clazz      The class to which the returned object should belong
  @param jsonString the jsonstring representing the object to be parsed
  @param <T>        the type of the returned object
  @return an instantiated object of class T corresponding to the given jsonstring
  @throws JsonException If deserialization failed or if the object of class T could for some reason not be
  constructed.