initial attempt to test for inconsistent map types in JSONObject

This commit is contained in:
stleary
2022-08-20 16:14:34 -05:00
parent 88ca19042b
commit e0534b3ec7
4 changed files with 393 additions and 123 deletions

View File

@@ -166,6 +166,10 @@ public class JSONObject {
*/
private final Map<String, Object> map;
public Class<? extends Map> getMapType() {
return map.getClass();
}
/**
* It is sometimes more convenient and less ambiguous to have a
* <code>NULL</code> object than to use Java's <code>null</code> value.