@Override public Object reduce() { return EwJson.reduce(this); }
@Override public boolean contains(Object element) { return EwJson.contains((JSONObject) this, element); }
public static boolean isJsonArray(String json) { return (getJsonArray(json) != null); }
public static String decodeValue(String value) { return EwUri.decodeValue(value); }
@Override public EwJsonCollection optJSONCollection(Object ref, EwJsonCollection defaultValue) { return EwJson.tryConvert(this.opt(ref)); }
public static synchronized EwCache<Object, Object> getCache(String name) { return getCache(name, 2000); }
public static void clearAll() { caches.clear(); }
public static boolean isJson(String json) { return (isJsonArray(json) || isJsonObject(json)); }
public static boolean isJsonObject(String json) { return (getJsonObject(json) != null); }
@Deprecated public static Object tryParseJson(Object object, boolean nullify) { return tryParseJson(object, nullify, false); }
@Override public EwJsonCollection accumulate(Object ref, Object value) throws JSONException { if (!EwJson.isValidIndex(ref)) throw buildGetterException(ref, "not found"); return EwJson.accumulate(this, ref, value); }
@Override public String urlEncode(Object ref) { return EwUri.encodeValue(optString(ref)); }
@Override public EwJsonCollection accumulate(Object ref, Object value) throws JSONException { if (ref == null) throw new JSONException("Null key."); return EwJson.accumulate(this, ref, value); }
@Override public long getLong(Object ref) throws JSONException { try { return EwJson.parseLong(this.get(ref)); } catch (JSONException je) { throw buildGetterException(ref, "is not a long"); } }
@Override public double getDouble(Object ref) throws JSONException { try { return EwJson.parseDouble(this.get(ref)); } catch (JSONException je) { throw buildGetterException(ref, "is not a double"); } }
@Override public String getString(Object ref) throws JSONException { try { return EwJson.parseString(this.get(ref)); } catch (JSONException je) { throw buildGetterException(ref, "is not a string"); } }
@Override public int getInt(Object ref) throws JSONException { try { return EwJson.parseInt(this.get(ref)); } catch (JSONException je) { throw buildGetterException(ref, "is not an integer"); } }
@Override public Object reduce() { return EwJson.reduce(this); }
@Override public boolean contains(Object element) { return EwJson.contains((JSONArray) this, element); }