Fix Json Analyze failed issue 25/24825/1
authorc00149107 <chenchuanyu@huawei.com>
Wed, 22 Nov 2017 01:11:53 +0000 (09:11 +0800)
committerc00149107 <chenchuanyu@huawei.com>
Wed, 22 Nov 2017 01:15:04 +0000 (09:15 +0800)
Fix Json Analyze failed issue

Issue-ID: SO-348
Change-Id: Iffddccb2d8c15d954920dd1f6529e2e2b7656b87
Signed-off-by: c00149107 <chenchuanyu@huawei.com>
bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/json/JsonUtils.java

index d0de819..1739ffc 100644 (file)
@@ -928,14 +928,14 @@ public class JsonUtils {
                JSONObject obj = new JSONObject(stringListJson);\r
                JSONArray arr = obj.getJSONArray("strings");\r
                for (int i = 0; i < arr.length(); i++){\r
-                       String s = arr.getString(i);\r
+                   String s = arr.get(i).toString();\r
                        list.add(s);\r
                }\r
                msoLogger.debug("Outgoing List is: " + list);\r
                msoLogger.debug("Completed String Array To List Util Method");\r
                return list;\r
        }\r
-\r
+       \r
        /**\r
         *\r
         * Invokes the getJsonRawValue() method to determine if the\r