Package com.liferay.portal.kernel.json
Interface JSONArray
- All Superinterfaces:
Externalizable
,Iterable
,JSONSerializable
,Serializable
- Author:
- Brian Wing Shun Chan
-
Method Summary
Modifier and TypeMethodDescriptionget
(int index) boolean
getBoolean
(int index) double
getDouble
(int index) int
getInt
(int index) getJSONArray
(int index) getJSONObject
(int index) long
getLong
(int index) getString
(int index) boolean
isNull
(int index) int
length()
put
(boolean value) put
(double value) put
(int value) put
(long value) put
(JSONObject jsonObject) toString()
toString
(int indentFactor) Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface com.liferay.portal.kernel.json.JSONSerializable
toJSONString
-
Method Details
-
get
-
getBoolean
boolean getBoolean(int index) -
getDouble
double getDouble(int index) -
getInt
int getInt(int index) -
getJSONArray
-
getJSONObject
-
getLong
long getLong(int index) -
getString
-
isNull
boolean isNull(int index) -
join
- Throws:
JSONException
-
length
int length() -
put
-
put
-
put
-
put
-
put
-
put
-
put
-
put
-
put
-
toString
String toString() -
toString
- Throws:
JSONException
-
write
- Throws:
JSONException
-