We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8108ac commit a50785eCopy full SHA for a50785e
src/main/java/io/appium/java_client/remote/NewAppiumSessionPayload.java
@@ -269,12 +269,13 @@ public void writeTo(Appendable appendable) throws IOException {
269
json.beginObject();
270
271
json.name(ALWAYS_MATCH);
272
- json.write(first);
+ getW3C().forEach(json::write);
273
274
json.name(FIRST_MATCH);
275
json.beginArray();
276
//noinspection unchecked
277
- getW3C().forEach(json::write);
+ json.beginObject();
278
+ json.endObject();
279
json.endArray();
280
281
json.endObject(); // Close "capabilities" object
0 commit comments