![]() |
NIM 跨平台 C++ SDK
|
Configuration passed to reader and writer. This configuration object can be used to force the Reader or Writer to behave in a standard conforming way. 更多...
#include <json_features.h>
Public 成员函数 | |
| Features () | |
| Initialize the configuration like JsonConfig::allFeatures; | |
静态 Public 成员函数 | |
| static Features | all () |
| A configuration that allows all features and assumes all strings are UTF-8. | |
| static Features | strictMode () |
| A configuration that is strictly compatible with the JSON specification. | |
Public 属性 | |
| bool | allowComments_ {true} |
true if comments are allowed. Default: true. | |
| bool | strictRoot_ {false} |
| bool | allowDroppedNullPlaceholders_ {false} |
true if dropped null placeholders are allowed. Default: false. | |
| bool | allowNumericKeys_ {false} |
true if numeric object key are allowed. Default: false. | |
Configuration passed to reader and writer. This configuration object can be used to force the Reader or Writer to behave in a standard conforming way.
|
default |
Initialize the configuration like JsonConfig::allFeatures;
|
static |
A configuration that allows all features and assumes all strings are UTF-8.
|
static |
A configuration that is strictly compatible with the JSON specification.
true if comments are allowed. Default: true.
true if dropped null placeholders are allowed. Default: false.
true if numeric object key are allowed. Default: false.
true if root must be either an array or an object value. Default: false.