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.
invalidTrailingComma
allowTrailingComma
allowTrailingCommas
1 parent d4d066d commit 31ab68cCopy full SHA for 31ab68c
formats/json/commonMain/src/kotlinx/serialization/json/internal/JsonExceptions.kt
@@ -49,7 +49,7 @@ internal fun AbstractJsonLexer.throwInvalidFloatingPointDecoded(result: Number):
49
internal fun AbstractJsonLexer.invalidTrailingComma(entity: String = "object"): Nothing {
50
fail("Trailing comma before the end of JSON $entity",
51
position = currentPosition - 1,
52
- hint = "Trailing commas are non-complaint JSON and not allowed by default. Use 'allowTrailingCommas = true' in 'Json {}' builder to support them."
+ hint = "Trailing commas are non-complaint JSON and not allowed by default. Use 'allowTrailingComma = true' in 'Json {}' builder to support them."
53
)
54
}
55
0 commit comments