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

Interface JSONParser

APIJSONORM/src/main/java/apijson/JSONParser.java:14–33  ·  view source on GitHub ↗

JSON 相关解析器 @author Lemon

Source from the content-addressed store, hash-verified

12 * @author Lemon
13 */
14public interface JSONParser<M extends Map<String, Object>, L extends List<Object>> extends JSONCreator<M, L> {
15
16 Object parse(Object json);
17
18 M parseObject(Object json);
19
20 <T> T parseObject(Object json, Class<T> clazz);
21
22 L parseArray(Object json);
23
24 <T> List<T> parseArray(Object json, Class<T> clazz);
25
26 default String format(Object obj) {
27 return toJSONString(obj, true);
28 }
29 default String toJSONString(Object obj) {
30 return toJSONString(obj, false);
31 }
32 String toJSONString(Object obj, boolean format);
33}

Callers 5

parseObjectMethod · 0.65
parseArrayMethod · 0.65
verifyUseRoleMethod · 0.65
getPriceMethod · 0.65
logInfoMethod · 0.65

Implementers 1

JSONAPIJSONORM/src/main/java/apijson/JSON.

Calls

no outgoing calls

Tested by

no test coverage detected