From 89ac95e4d148bf2b95a428893fbd3c448908d87e Mon Sep 17 00:00:00 2001 From: c00149107 Date: Wed, 22 Nov 2017 09:11:53 +0800 Subject: Fix Json Analyze failed issue Fix Json Analyze failed issue Issue-ID: SO-348 Change-Id: Iffddccb2d8c15d954920dd1f6529e2e2b7656b87 Signed-off-by: c00149107 --- .../src/main/java/org/openecomp/mso/bpmn/core/json/JsonUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/json/JsonUtils.java b/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/json/JsonUtils.java index d0de819e03..1739ffc257 100644 --- a/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/json/JsonUtils.java +++ b/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/json/JsonUtils.java @@ -928,14 +928,14 @@ public class JsonUtils { JSONObject obj = new JSONObject(stringListJson); JSONArray arr = obj.getJSONArray("strings"); for (int i = 0; i < arr.length(); i++){ - String s = arr.getString(i); + String s = arr.get(i).toString(); list.add(s); } msoLogger.debug("Outgoing List is: " + list); msoLogger.debug("Completed String Array To List Util Method"); return list; } - + /** * * Invokes the getJsonRawValue() method to determine if the -- cgit 1.2.3-korg