(Object json)
| 112 | |
| 113 | |
| 114 | public static <M extends Map<String, Object>> M parseObject(Object json) { |
| 115 | String s = toJSONString(json); |
| 116 | if (StringUtil.isEmpty(s, true)) { |
| 117 | return null; |
| 118 | } |
| 119 | |
| 120 | return (M) DEFAULT_JSON_PARSER.parseObject(s); |
| 121 | } |
| 122 | |
| 123 | public static <T> T parseObject(Object json, Class<T> clazz) { |
| 124 | String s = toJSONString(json); |
no test coverage detected