We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7fccb6 commit 03aaec2Copy full SHA for 03aaec2
core/support/src/main/kotlin/au/com/dius/pact/core/support/json/JsonValue.kt
@@ -116,7 +116,12 @@ sealed class JsonValue {
116
is True -> "true"
117
is False -> "false"
118
is Array -> "[${this.values.joinToString(",") { it.serialise() }}]"
119
- is Object -> "{${this.entries.entries.sortedBy { it.key }.joinToString(",") { "\"${it.key}\":" + it.value.serialise() }}}"
+ is Object -> {
120
+ val s = this.entries.entries
121
+ .sortedBy { it.key }
122
+ .joinToString(",") { "\"${it.key}\":" + it.value.serialise() }
123
+ "{$s}"
124
+ }
125
}
126
127
0 commit comments