aboutsummaryrefslogtreecommitdiffstats
path: root/profiles/http/src/main/java/org/onap
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/http/src/main/java/org/onap')
-rw-r--r--profiles/http/src/main/java/org/onap/cli/fw/http/utils/OnapCommandHttpUtils.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/utils/OnapCommandHttpUtils.java b/profiles/http/src/main/java/org/onap/cli/fw/http/utils/OnapCommandHttpUtils.java
index dcc3082d..7780701c 100644
--- a/profiles/http/src/main/java/org/onap/cli/fw/http/utils/OnapCommandHttpUtils.java
+++ b/profiles/http/src/main/java/org/onap/cli/fw/http/utils/OnapCommandHttpUtils.java
@@ -304,10 +304,9 @@ public class OnapCommandHttpUtils {
}
public static String normalizeJson(String json) throws OnapCommandHttpInvalidRequestBody {
- JsonParser jsonParser = new JsonParser();
JsonElement node;
try {
- node = jsonParser.parse(json);
+ node = JsonParser.parseString(json);
normalizeJson(node);
return gson.toJson(node);
} catch (Exception e) { //NOSONAR