Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
By default, the parser is strict and only accepts JSON compliant with the standard. However this behavior can be relaxed by filling out an options structure enabling one or more extensions. Here we use a static buffer and enable two non-standard extensions:默认情况下,解析器采用严格模式,仅接受符合标准的 JSON。但可通过填充一个选项结构体来启用一个或多个扩展,从而放宽此行为。以下示例使用静态缓冲区并启用了两个非标准扩展: