From 663c3d5b92031a353275b409032c7f67a266df9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Mon, 3 Aug 2020 12:36:37 +0800 Subject: [PATCH] android: add json array to java value --- .../doric/src/main/java/pub/doric/utils/DoricUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doric-android/doric/src/main/java/pub/doric/utils/DoricUtils.java b/doric-android/doric/src/main/java/pub/doric/utils/DoricUtils.java index 7b0ebaac..b1fa8965 100644 --- a/doric-android/doric/src/main/java/pub/doric/utils/DoricUtils.java +++ b/doric-android/doric/src/main/java/pub/doric/utils/DoricUtils.java @@ -79,6 +79,8 @@ public class DoricUtils { return new JavaValue(((JSONBuilder) arg).toJSONObject()); } else if (arg instanceof JSONObject) { return new JavaValue((JSONObject) arg); + } else if (arg instanceof JSONArray) { + return new JavaValue((JSONArray) arg); } else if (arg instanceof String) { return new JavaValue((String) arg); } else if (arg instanceof Integer) {