version 5. array.toJson