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) booleangetBoolean(int index) doublegetDouble(int index) intgetInt(int index) getJSONArray(int index) getJSONObject(int index) longgetLong(int index) getString(int index) booleanisNull(int index) intlength()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, writeExternalMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods 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
-