(String text)
| 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; |