src/main/java/de/alpharogroup/xml/json/JsonToObjectExtensions.java
public static <T> T toObject(final String jsonString, final Class<T> clazz,
		final boolean newMapper) throws JsonParseException, JsonMappingException, IOException
	{
		final ObjectMapper mapper = ObjectMapperFactory.getObjectMapper(newMapper);
		final T object = mapper.readValue(jsonString, clazz);
		return object;
	}
public static <T> T toObject(final String jsonString, final Class<T> clazz,
		final boolean newMapper) throws JsonParseException, JsonMappingException, IOException
	{
		final ObjectMapper mapper = ObjectMapperFactory.getObjectMapper(newMapper);
		final T object = mapper.readValue(jsonString, clazz);
		return object;
	}
Transforms the given json string into a java object.

@param <T>
the generic type of the return type
@param jsonString
the json string
@param clazz
the clazz of the generic type
@param newMapper
flag that indicates if a new ObjectMapper should be created. if true a new
ObjectMapper will be created otherwise the ObjectMapper from this class will be
returned.
@return the object
@throws JsonParseException
If an error occurs when parsing the string into Object
@throws JsonMappingException
the If an error occurs when mapping the string into Object
@throws IOException
Signals that an I/O exception has occurred.