From 82da3bde2964f2fec6f2a9d28a51b3487a2ef535 Mon Sep 17 00:00:00 2001 From: Joel Ramos Date: Mon, 19 Oct 2020 11:09:13 -0400 Subject: [PATCH] Fixing #1225 for Debugger --- karate-core/src/main/java/com/intuit/karate/ScriptValue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karate-core/src/main/java/com/intuit/karate/ScriptValue.java b/karate-core/src/main/java/com/intuit/karate/ScriptValue.java index 8c6d49cb1..c34c1183e 100755 --- a/karate-core/src/main/java/com/intuit/karate/ScriptValue.java +++ b/karate-core/src/main/java/com/intuit/karate/ScriptValue.java @@ -350,7 +350,7 @@ public String getAsStringRemovingCyclicReferences() { case JSON: case MAP: Map map = JsonUtils.removeCyclicReferences(getAsMap()); - return JsonUtils.toJsonDoc(map).jsonString(); + return JsonUtils.toPrettyJsonString(JsonPath.parse(map)); default: return getAsString(); }