public <T> T fromJson(@Nullable String jsonString, Class<T> clazz) {
		if (StringUtils.isEmpty(jsonString)) {
			return null;
		}

		try {
			return mapper.readValue(jsonString, clazz);
		} catch (IOException e) {
			logger.warn("parse json string error:" + jsonString, e);
			return null;
		}
	}
public < T > T fromJson ( @ Nullable String jsonString , Class < T > clazz ) { if ( StringUtils . isEmpty ( jsonString ) ) { return null ; } try { return mapper . readValue ( jsonString , clazz ) ; } catch ( IOException e ) { logger . warn ( "parse json string error:" + jsonString , e ) ; return null ; } }
反序列化POJO或简单Collection如List<String>.

如果JSON字符串为Null或"null"字符串, 返回Null. 如果JSON字符串为"[]", 返回空集合.

如需反序列化复杂Collection如List<MyBean>, 请使用fromJson(String, JavaType)

@see #fromJson(String, JavaType)