Update docs/mkdocs/docs/features/trailing_commas.md

Co-authored-by: Niels Lohmann <niels.lohmann@gmail.com>
Signed-off-by: chirsz <chirsz-ever@outlook.com>
This commit is contained in:
chirsz 2025-01-27 19:17:04 +08:00 committed by GitHub
parent 86d28891f5
commit 7fb2ff2988
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
# Trailing Commas
Like comments, this library does not support trailing commas in arrays and objects *by default*.
Like [comments](comments.md), this library does not support trailing commas in arrays and objects *by default*.
You can set parameter `ignore_trailing_commas` to `#!cpp true` in the [`parse`](../api/basic_json/parse.md) function to allow trailing commas in arrays and objects. Note that a single comma as the only content of the array or object (`[,]` or `{,}`) is not allowed, and multiple trailing commas (`[1,,]`) are not allowed either.