From e06e7f5f3b81d613fb79ced173caffc18ddf3e3d Mon Sep 17 00:00:00 2001 From: liamfallon Date: Fri, 5 Oct 2018 13:28:30 +0100 Subject: Set pretty print on JSON creation Pretty printing was set off, making debugging of JSON messages more difficult. Issue-ID: POLICY-954 Change-Id: Ifcc32cdba822f2bfc105c99cc3dc85ee05a89f6f Signed-off-by: liamfallon --- .../org/onap/policy/apex/context/impl/schema/java/JavaSchemaHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'context') diff --git a/context/context-management/src/main/java/org/onap/policy/apex/context/impl/schema/java/JavaSchemaHelper.java b/context/context-management/src/main/java/org/onap/policy/apex/context/impl/schema/java/JavaSchemaHelper.java index fcc7c4d60..407239ae8 100644 --- a/context/context-management/src/main/java/org/onap/policy/apex/context/impl/schema/java/JavaSchemaHelper.java +++ b/context/context-management/src/main/java/org/onap/policy/apex/context/impl/schema/java/JavaSchemaHelper.java @@ -248,7 +248,7 @@ public class JavaSchemaHelper extends AbstractSchemaHelper { * @return the GSON instance */ private Gson getGson() { - GsonBuilder gsonBuilder = new GsonBuilder(); + GsonBuilder gsonBuilder = new GsonBuilder().setPrettyPrinting(); // Get the Java schema helper parameters from the parameter service SchemaParameters schemaParameters = ParameterService.get(ContextParameterConstants.SCHEMA_GROUP_NAME); -- cgit 1.2.3-korg