JSONObject.Keys Method

Definition

Returns an iterator of the String names in this object.

[Android.Runtime.Register("keys", "()Ljava/util/Iterator;", "GetKeysHandler")]
public virtual Java.Util.IIterator Keys ();
[<Android.Runtime.Register("keys", "()Ljava/util/Iterator;", "GetKeysHandler")>]
abstract member Keys : unit -> Java.Util.IIterator
override this.Keys : unit -> Java.Util.IIterator

Returns

Attributes

Remarks

Returns an iterator of the String names in this object. The returned iterator supports Iterator#remove() remove, which will remove the corresponding mapping from this object. If this object is modified after the iterator is returned, the iterator's behavior is undefined. The order of the keys is undefined.

Java documentation for org.json.JSONObject.keys().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to