Class MapperJsonUtil
- java.lang.Object
-
- fr.paris.lutece.plugins.releaser.util.MapperJsonUtil
-
public final class MapperJsonUtil extends java.lang.ObjectJSON Mapper utils.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetJson(java.lang.Object object)parse a bean into a json.static <T> Tparse(java.lang.String strJson, java.lang.Class<T> t)parse the JSON for a bean.
-
-
-
Method Detail
-
parse
public static <T> T parse(java.lang.String strJson, java.lang.Class<T> t) throws java.io.IOExceptionparse the JSON for a bean.- Type Parameters:
T- The Bean class- Parameters:
strJson- The JSONt- The bean class- Returns:
- The bean
- Throws:
java.io.IOException- if an error occurs
-
getJson
public static java.lang.String getJson(java.lang.Object object) throws java.io.IOExceptionparse a bean into a json.- Parameters:
object- the object- Returns:
- The json
- Throws:
java.io.IOException- if an error occurs
-
-