Could we just use JSONObject(java.util.Map map)?