ADTF
3.18.2
|
Build a CharReader implementation. More...
Public Member Functions | |
CharReader * | newCharReader () const JSONCPP_OVERRIDE |
Allocate a CharReader via operator new(). More... | |
bool | validate (Json::Value *invalid) const |
Value & | operator[] (JSONCPP_STRING key) |
A simple way to update a specific setting. | |
Static Public Member Functions | |
static void | setDefaults (Json::Value *settings) |
Called by ctor, but you can use this to reset settings_. More... | |
static void | strictMode (Json::Value *settings) |
Same as old Features::strictMode(). More... | |
Public Attributes | |
Json::Value | settings_ |
Configuration of this builder. More... | |
Build a CharReader implementation.
Usage:
Definition at line 298 of file workspace/conan/dev_essential/1.3.3/dw/stable/package/37682420cd166e229516a41c8d6a139a0b13e1e1/include/json/reader.h.
|
virtual |
Allocate a CharReader via operator new().
std::exception | if something goes wrong (e.g. invalid settings) |
Implements CharReader::Factory.
|
static |
Called by ctor, but you can use this to reset settings_.
|
static |
Same as old Features::strictMode().
bool validate | ( | Json::Value * | invalid | ) | const |
Json::Value settings_ |
Configuration of this builder.
These are case-sensitive. Available settings (case-sensitive):
"collectComments": false or true
"allowComments": false or true
"strictRoot": false or true
"allowDroppedNullPlaceholders": false or true
"allowNumericKeys": false or true
"allowSingleQuotes": false or true
"stackLimit": integer
readValue()
) will cause an exception."failIfExtra": false or true
parse()
returns false when extra non-whitespace trails the JSON value in the input string."rejectDupKeys": false or true
parse()
returns false when a key is duplicated within an object."allowSpecialFloats": false or true
You can examine 'settings_` yourself to see the defaults. You can also write and read them just like any JSON Value.
Definition at line 338 of file workspace/conan/dev_essential/1.3.3/dw/stable/package/37682420cd166e229516a41c8d6a139a0b13e1e1/include/json/reader.h.