File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Open diff view settings
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Open diff view settings
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ of this software and associated documentation files (the "Software"), to deal
3737import java .util .Locale ;
3838import java .util .Map ;
3939import java .util .ResourceBundle ;
40+ import java .util .Set ;
4041
4142/**
4243 * A JSONObject is an unordered collection of name/value pairs. Its external
@@ -90,7 +91,7 @@ of this software and associated documentation files (the "Software"), to deal
9091 * </ul>
9192 *
9293 * @author JSON.org
93- * @version 2012-10-26
94+ * @version 2012-10-27
9495 */
9596public class JSONObject {
9697
@@ -702,7 +703,17 @@ public boolean isNull(String key) {
702703 * @return An iterator of the keys.
703704 */
704705 public Iterator keys () {
705- return this .map .keySet ().iterator ();
706+ return this .keySet ().iterator ();
707+ }
708+
709+
710+ /**
711+ * Get a set of keys of the JSONObject.
712+ *
713+ * @return A keySet.
714+ */
715+ public Set keySet () {
716+ return this .map .keySet ();
706717 }
707718
708719
You can’t perform that action at this time.
0 commit comments