Skip to content

Commit 040bfc8

Browse files
feat(android): expose JSON string constructor for JSArray (#2879)
Co-authored-by: Keagan McClelland <keagan.mcclelland@gmail.com>
1 parent 2f6f0ba commit 040bfc8

File tree

1 file changed

+4
-0
lines changed
  • android/capacitor/src/main/java/com/getcapacitor

1 file changed

+4
-0
lines changed

android/capacitor/src/main/java/com/getcapacitor/JSArray.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ public JSArray() {
1313
super();
1414
}
1515

16+
public JSArray(String json) throws JSONException {
17+
super(json);
18+
}
19+
1620
public JSArray(Collection copyFrom) {
1721
super(copyFrom);
1822
}

0 commit comments

Comments
 (0)