Skip to content

Commit 31ab68c

Browse files
authored
Fix invalidTrailingComma to properly reference allowTrailingComma instead of allowTrailingCommas (#2859)
1 parent d4d066d commit 31ab68c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

formats/json/commonMain/src/kotlinx/serialization/json/internal/JsonExceptions.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ internal fun AbstractJsonLexer.throwInvalidFloatingPointDecoded(result: Number):
4949
internal fun AbstractJsonLexer.invalidTrailingComma(entity: String = "object"): Nothing {
5050
fail("Trailing comma before the end of JSON $entity",
5151
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."
52+
hint = "Trailing commas are non-complaint JSON and not allowed by default. Use 'allowTrailingComma = true' in 'Json {}' builder to support them."
5353
)
5454
}
5555

0 commit comments

Comments
 (0)