Skip to content

Commit 8c0af54

Browse files
committed
- Added isEmpty() method to JSONObject
git-svn-id: svn://192.168.0.80/JavaXT/javaxt-core@1100 2c7b0aa6-e0b2-3c4e-bb4a-8b65b6c465ff
1 parent 56274bc commit 8c0af54

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/javaxt/json/JSONObject.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,16 @@ public boolean isNull(String key) {
193193
}
194194

195195

196+
//**************************************************************************
197+
//** isEmpty
198+
//**************************************************************************
199+
/** Returns true if there are no entries in the JSONObject.
200+
*/
201+
public boolean isEmpty(){
202+
return map.isEmpty();
203+
}
204+
205+
196206
//**************************************************************************
197207
//** keys
198208
//**************************************************************************

0 commit comments

Comments
 (0)