I have to clone a JSONObject on Android. I am aware of the easy way:
JSONObject clone = new JSONObject(original.toString());
but somehow it feels wrong/slow to do it this way. I found this: https://stackoverflow.com/a/12809884/322642 , but on Android I do not have JSONObject.getNames - anyone has a good pointer on how to do this?