MCPcopy Index your code
hub / github.com/Tencent/APIJSON / parseObject

Method parseObject

APIJSONORM/src/main/java/apijson/JSON.java:114–121  ·  view source on GitHub ↗
(Object json)

Source from the content-addressed store, hash-verified

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);

Callers 4

parseRequestMethod · 0.95
parseResponseMethod · 0.95
getArgValueMethod · 0.95
getArgValMethod · 0.95

Calls 3

toJSONStringMethod · 0.95
isEmptyMethod · 0.95
parseObjectMethod · 0.65

Tested by

no test coverage detected