We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b62a221 commit 68623a1Copy full SHA for 68623a1
1 file changed
src/javaxt/json/JSONArray.java
@@ -234,7 +234,11 @@ public boolean equals(Object obj){
234
/** Returns an array of Objects backing the JSONArray
235
*/
236
public Object[] toArray(){
237
- return arr.toArray();
+ Object[] out = new Object[arr.size()];
238
+ for (int i=0; i<out.length; i++){
239
+ out[i] = arr.get(i).toObject();
240
+ }
241
+ return out;
242
}
243
244
0 commit comments