-
public class JsonUtils
-
-
Method Summary
Modifier and Type Method Description static voidputString(JSONObject jsonObject, String key, String value)static voidputInt(JSONObject jsonObject, String key, int value)static voidputLong(JSONObject jsonObject, String key, long value)static voidputDouble(JSONObject jsonObject, String key, double value)static voidputBoolean(JSONObject jsonObject, String key, boolean value)static voidputJSONObject(JSONObject jsonObject, String key, JSONObject value)static voidput(JSONObject jsonObject, String key, Object value)-
-
Method Detail
-
putString
static void putString(JSONObject jsonObject, String key, String value)
-
putInt
static void putInt(JSONObject jsonObject, String key, int value)
-
putLong
static void putLong(JSONObject jsonObject, String key, long value)
-
putDouble
static void putDouble(JSONObject jsonObject, String key, double value)
-
putBoolean
static void putBoolean(JSONObject jsonObject, String key, boolean value)
-
putJSONObject
static void putJSONObject(JSONObject jsonObject, String key, JSONObject value)
-
put
static void put(JSONObject jsonObject, String key, Object value)
-
-
-
-