MCPcopy Create free account
hub / github.com/FongMi/TV / isArray

Method isArray

catvod/src/main/java/com/github/catvod/utils/Json.java:37–45  ·  view source on GitHub ↗
(String text)

Source from the content-addressed store, hash-verified

35 }
36
37 public static boolean isArray(String text) {
38 try {
39 if (TextUtils.isEmpty(text)) return false;
40 new JSONArray(text);
41 return true;
42 } catch (Exception e) {
43 return false;
44 }
45 }
46
47 public static boolean isEmpty(JsonObject obj, String key) {
48 if (!obj.has(key)) return true;

Callers 15

startMethod · 0.95
parsePrimitiveMethod · 0.95
zFunction · 0.80
JFunction · 0.80
seFunction · 0.80
cheerio.min.jsFile · 0.80
pFunction · 0.80
sFunction · 0.80
tFunction · 0.80
MiFunction · 0.80
gsFunction · 0.80
KsFunction · 0.80

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected