Package com.liferay.portal.kernel.json
Interface JSONObject
- All Superinterfaces:
Externalizable
,JSONSerializable
,Serializable
- Author:
- Brian Wing Shun Chan
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getBoolean
(String key) boolean
getBoolean
(String key, boolean defaultValue) double
double
int
int
getJSONArray
(String key) getJSONObject
(String key) long
long
boolean
boolean
keys()
keySet()
int
length()
names()
put
(String key, JSONObject jsonObject) putException
(Exception exception) toMap()
toString()
toString
(int indentFactor) Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
Methods inherited from interface com.liferay.portal.kernel.json.JSONSerializable
toJSONString
-
Method Details
-
get
-
getBoolean
-
getBoolean
-
getDouble
-
getDouble
-
getInt
-
getInt
-
getJSONArray
-
getJSONObject
-
getLong
-
getLong
-
getString
-
getString
-
has
-
isNull
-
keys
-
keySet
-
length
int length() -
names
JSONArray names() -
opt
-
put
-
put
-
put
-
put
-
put
-
put
-
put
-
put
-
put
-
put
JSONObject put(String key, com.liferay.petra.function.UnsafeSupplier<Object, Exception> valueUnsafeSupplier) -
putException
-
remove
-
toMap
-
toString
String toString() -
toString
- Throws:
JSONException
-
write
- Throws:
JSONException
-