public class MberJSON extends Object
| Constructor and Description |
|---|
MberJSON() |
| Modifier and Type | Method and Description |
|---|---|
static net.sf.json.JSONObject |
aborted(Exception e) |
static net.sf.json.JSONObject |
aborted(String error) |
static net.sf.json.JSONObject |
failed(Exception e) |
static net.sf.json.JSONObject |
failed(net.sf.json.JSONArray errors) |
static net.sf.json.JSONObject |
failed(String error) |
static net.sf.json.JSONArray |
getArray(net.sf.json.JSONObject json,
String key) |
static boolean |
getBooleanOrFalse(net.sf.json.JSONObject json,
String key) |
static net.sf.json.JSONObject |
getObject(net.sf.json.JSONObject json,
String key) |
static String |
getString(net.sf.json.JSONObject json,
String key) |
static boolean |
isAborted(net.sf.json.JSONObject result) |
static boolean |
isArray(net.sf.json.JSONObject json,
String key) |
static boolean |
isDuplicate(net.sf.json.JSONObject result) |
static boolean |
isFailed(net.sf.json.JSONObject result) |
static boolean |
isSuccess(net.sf.json.JSONObject result) |
static String |
join(net.sf.json.JSONArray array,
String separator) |
static net.sf.json.JSONObject |
success() |
static net.sf.json.JSONObject |
toObject(String json) |
public static boolean getBooleanOrFalse(net.sf.json.JSONObject json,
String key)
public static net.sf.json.JSONObject toObject(String json)
public static net.sf.json.JSONObject getObject(net.sf.json.JSONObject json,
String key)
public static net.sf.json.JSONArray getArray(net.sf.json.JSONObject json,
String key)
public static boolean isArray(net.sf.json.JSONObject json,
String key)
public static boolean isSuccess(net.sf.json.JSONObject result)
public static boolean isFailed(net.sf.json.JSONObject result)
public static boolean isDuplicate(net.sf.json.JSONObject result)
public static boolean isAborted(net.sf.json.JSONObject result)
public static net.sf.json.JSONObject success()
public static net.sf.json.JSONObject failed(String error)
public static net.sf.json.JSONObject failed(net.sf.json.JSONArray errors)
public static net.sf.json.JSONObject failed(Exception e)
public static net.sf.json.JSONObject aborted(String error)
public static net.sf.json.JSONObject aborted(Exception e)
Copyright © 2004-2015. All Rights Reserved.