public final class MapperJsonUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getJson(Object object)
parse a bean into a json.
|
static <T> T |
parse(String strJson,
Class<T> t)
parse the JSON for a bean.
|
public static <T> T parse(String strJson, Class<T> t) throws IOException
T - The Bean classstrJson - The JSONt - The bean classIOException - if an error occurspublic static String getJson(Object object) throws IOException
object - the objectIOException - if an error occursCopyright © 2022 City of Paris. All rights reserved.