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

Class JSON

APIJSONORM/src/main/java/apijson/JSON.java:15–691  ·  view source on GitHub ↗

JSON工具类 防止解析时异常 @author Lemon

Source from the content-addressed store, hash-verified

13 * @author Lemon
14 */
15public class JSON {
16
17 static final String TAG = "JSON";
18
19 public static JSONParser<? extends Map<String, Object>, ? extends List<Object>> DEFAULT_JSON_PARSER;
20
21 static {
22 //DEFAULT_JSON_PARSER = new JSONParser<LinkedHashMap<String, Object>, List<Object>>() {
23 //
24 // @Override
25 // public LinkedHashMap<String, Object> createJSONObject() {
26 // throw new UnsupportedOperationException();
27 // }
28 //
29 // @Override
30 // public List<Object> createJSONArray() {
31 // throw new UnsupportedOperationException();
32 // }
33 //
34 // @Override
35 // public String toJSONString(Object obj, boolean format) {
36 // throw new UnsupportedOperationException();
37 // }
38 //
39 // @Override
40 // public Object parse(Object json) {
41 // throw new UnsupportedOperationException();
42 // }
43 //
44 // @Override
45 // public LinkedHashMap<String, Object> parseObject(Object json) {
46 // throw new UnsupportedOperationException();
47 // }
48 //
49 // @Override
50 // public <T> T parseObject(Object json, Class<T> clazz) {
51 // throw new UnsupportedOperationException();
52 // }
53 //
54 // @Override
55 // public List<Object> parseArray(Object json) {
56 // throw new UnsupportedOperationException();
57 // }
58 //
59 // @Override
60 // public <T> List<T> parseArray(Object json, Class<T> clazz) {
61 // throw new UnsupportedOperationException();
62 // }
63 //
64 //};
65
66 }
67
68// public static JSONCreator<? extends Map<String, Object>, ? extends List<Object>> DEFAULT_JSON_CREATOR = DEFAULT_JSON_PARSER;
69// public static <M extends Map<String, Object>> M newObj() {
70// return createJSONObject();
71// }
72// public static <M extends Map<String, Object>> M newObj(String key, Object value) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected