json.writeEndArray() added ... again