Package com.liferay.portal.kernel.json
Interface JSONObject
- All Superinterfaces:
Externalizable,JSONSerializable,Serializable
- Author:
- Brian Wing Shun Chan
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(String key) booleangetBoolean(String key, boolean defaultValue) doubledoubleintintgetJSONArray(String key) getJSONObject(String key) longlongbooleanbooleankeys()keySet()intlength()names()put(String key, JSONObject jsonObject) putException(Exception exception) toMap()toString()toString(int indentFactor) Methods inherited from interface java.io.Externalizable
readExternal, writeExternalMethods 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
-