@Override public JSONObject newJSONObject() { return new JacksonJSONObject(); }
public String getString(String key) { Object value = get(key); if (value == null) { return null; } return value.toString(); }
public String toString() { return toJSONString(); } }
public String getString(String key) { Object value = get(key); if (value == null) { return null; } return value.toString(); }
@Override public JSONObject newJSONObject() { return new JacksonJSONObject(); }
public String toString() { return toJSONString(); } }
@Override public Short getShort(String key) { Object value = get(key); return castToShort(value); }
@Override public JSONObject newJSONObject(Map<String, Object> map) { return new JacksonJSONObject(map); }
public String toString() { return toJSONString(); } }
@Override public Integer getInteger(String key) { Object value = get(key); return castToInt(value); }
@Override public JSONObject newJSONObject(Map<String, Object> map) { return new JacksonJSONObject(map); }
public double getDoubleValue(String key) { Object value = get(key); if (value == null) { return 0D; } return castToDouble(value); }
@Override public JSONObject newJSONObject(int initialCapacity) { return new JacksonJSONObject(initialCapacity); }
@Override public Integer getInteger(String key) { Object value = get(key); return castToInt(value); }
@Override public JSONObject newJSONObject(int initialCapacity) { return new JacksonJSONObject(initialCapacity); }
@Override public short getShortValue(String key) { Object value = get(key); if (value == null) { return 0; } return castToShort(value); }
@Override public JSONObject toJSONObject(Object obj) { Map<String, Object> map = mapper.convertValue(obj, new com.fasterxml.jackson.core.type.TypeReference<HashMap<String, Object>>() { }); return new JacksonJSONObject(map); }
public float getFloatValue(String key) { Object value = get(key); if (value == null) { return 0F; } return castToFloat(value); }
@Override public JSONObject toJSONObject(Object obj) { Map<String, Object> map = mapper.convertValue(obj, new com.fasterxml.jackson.core.type.TypeReference<HashMap<String, Object>>() { }); return new JacksonJSONObject(map); }
@Override public byte[] getBytes(String key) { Object value = get(key); if (value == null) { return null; } return castToBytes(value); }