public class JSONObjectUtils extends Object
| Constructor and Description |
|---|
JSONObjectUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkExists(net.sf.json.JSONObject object,
String key) |
static boolean |
getBoolean(net.sf.json.JSONObject obj,
String key,
boolean... default_value) |
static double |
getDouble(net.sf.json.JSONObject obj,
String key,
double... default_value) |
static float |
getFloat(net.sf.json.JSONObject obj,
String key,
float... default_value) |
static int |
getInt(net.sf.json.JSONObject obj,
String key,
int... default_value) |
static net.sf.json.JSONArray |
getJSONArray(net.sf.json.JSONObject obj,
String key,
net.sf.json.JSONArray... default_value) |
static net.sf.json.JSONObject |
getJSONObject(net.sf.json.JSONObject obj,
String key,
net.sf.json.JSONObject... default_value) |
static long |
getLong(net.sf.json.JSONObject obj,
String key,
long... default_value) |
static String |
getString(net.sf.json.JSONObject obj,
String key,
String... default_value) |
static net.sf.json.JSONObject |
newJSONObject(Map map) |
public static net.sf.json.JSONObject newJSONObject(Map map)
public static boolean checkExists(net.sf.json.JSONObject object,
String key)
public static int getInt(net.sf.json.JSONObject obj,
String key,
int... default_value)
public static net.sf.json.JSONObject getJSONObject(net.sf.json.JSONObject obj,
String key,
net.sf.json.JSONObject... default_value)
public static net.sf.json.JSONArray getJSONArray(net.sf.json.JSONObject obj,
String key,
net.sf.json.JSONArray... default_value)
public static float getFloat(net.sf.json.JSONObject obj,
String key,
float... default_value)
public static double getDouble(net.sf.json.JSONObject obj,
String key,
double... default_value)
public static long getLong(net.sf.json.JSONObject obj,
String key,
long... default_value)
public static boolean getBoolean(net.sf.json.JSONObject obj,
String key,
boolean... default_value)
Copyright © 2021. All rights reserved.