When calling the toList() method of a JSONArray which contains JSONObject the returned list contains HashMap elements. The documentation mentions: Returns a java.util.List containing all of the ...
I covered both JSONML and JSONArray/JSONObject with my fix. It's passing all tests (though, of course, I removed the tests that counted on the code StackOverflow being thrown). I'll send you a PR so ...