I'm trying to create an JSONObject with a specific key and empty value. But the value should be a JSONObject and not a JSONArray.
I already tried it with localJson.append(key, JSONObject.NULL); or localJson.append(key, new JSONObject());.
Each time the value is a JSONArray with the value[0] = null or just [{}]
Is there any way to make it a JSONObject?