147148149150151152153
/** * Construct an empty JSONObject. */ public JSONObject() { this.myHashMap = new LiteralResultMap(); }
235236237238239240241242243
*/ public JSONObject(Map map) { if (map == null && map instanceof LiteralResultMap) { this.myHashMap = (LiteralResultMap)map; } else { this.myHashMap = new LiteralResultMap(); this.myHashMap.putAll(map); } }