Escape quotes in json strings 87/85987/5
authorPatrick Brady <patrick.brady@att.com>
Mon, 22 Apr 2019 20:12:14 +0000 (13:12 -0700)
committerPatrick Brady <patrick.brady@att.com>
Mon, 22 Apr 2019 20:24:35 +0000 (13:24 -0700)
commit38a4d515a8414e83a3724bccbb5ab83cd50d7df9
treefa3cd897384384483dd0256e7464c551ac135943
parent2df69f9fc6a46476c8600c31ef1905e9ed8035fb
Escape quotes in json strings

The JSONObject parser strips all text of backslash escape characters, even if it is
treaing the object as a string and not a series of json keys. If a string contains a
json object within it, the removal of these escape characters causes problems. Adding
the JSONObject.quote method on all strings to automatically add escape characters to
any strings which contain characters requiring escapes.

Change-Id: Ifac68844dd132971ba35803f1b9c03a5372bd500
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