Fix for extra json quotes 76/86676/1
authorPatrick Brady <patrick.brady@att.com>
Tue, 30 Apr 2019 20:08:25 +0000 (13:08 -0700)
committerPatrick Brady <patrick.brady@att.com>
Tue, 30 Apr 2019 20:08:34 +0000 (13:08 -0700)
Substring method output was being lost, causing extra
quotes to stay in the String.

Change-Id: I35e9eee60756b7b743386600e3ab1d203cca036a
Signed-off-by: Patrick Brady <patrick.brady@att.com>
Issue-ID: APPC-1576

appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java

index fa1c0fe..20aeacb 100644 (file)
@@ -71,7 +71,7 @@ public class JSONTool {
                     //JSONObject.quote() will always return, at minimum, a string with two quotes,
                     //even if a null string is passed to it. So this substring method does not
                     //need any checks.
-                    oString.substring(1, oString.length() - 1);
+                    oString = oString.substring(1, oString.length() - 1);
                     mm.put(key, oString);
                     log.info("Added property: " + key + ": " + oString);
                 } else if (o instanceof JSONObject) {