src/main/java/de/alpharogroup/xml/json/JsonToObjectExtensions.java
public static <T> T toObject(final String jsonString, final Class<T> clazz,
		final Module... modules) throws JsonParseException, JsonMappingException, IOException
	{
		ObjectMapper mapper = ObjectMapperFactory.getObjectMapper(true);
		mapper = mapper.registerModules(modules);
		final T object = mapper.readValue(jsonString, clazz);
		return object;
	}
public static <T> T toObject(final String jsonString, final Class<T> clazz,
		final Module... modules) throws JsonParseException, JsonMappingException, IOException
	{
		ObjectMapper mapper = ObjectMapperFactory.getObjectMapper(true);
		mapper = mapper.registerModules(modules);
		final T object = mapper.readValue(jsonString, clazz);
		return object;
	}
public static < T > T toObject ( final String jsonString , final Class < T > clazz , final Module ... modules ) throws JsonParseException , JsonMappingException , IOException { ObjectMapper mapper = ObjectMapperFactory . getObjectMapper ( true ) ; mapper = mapper . registerModules ( modules ) ; 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 modules
The modules to register for the mapper
@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.
Transforms the given json string into a java object .