From 040bfc85c332ba28cc48cd6e3a825be8a83b492d Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Thu, 7 May 2020 16:38:16 +0200 Subject: [PATCH] feat(android): expose JSON string constructor for JSArray (#2879) Co-authored-by: Keagan McClelland --- android/capacitor/src/main/java/com/getcapacitor/JSArray.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/capacitor/src/main/java/com/getcapacitor/JSArray.java b/android/capacitor/src/main/java/com/getcapacitor/JSArray.java index 3e2495bde..a5fe0f8b3 100644 --- a/android/capacitor/src/main/java/com/getcapacitor/JSArray.java +++ b/android/capacitor/src/main/java/com/getcapacitor/JSArray.java @@ -13,6 +13,10 @@ public JSArray() { super(); } + public JSArray(String json) throws JSONException { + super(json); + } + public JSArray(Collection copyFrom) { super(copyFrom); }