|
Free Electron
|
Build a CharReader implementation. More...
#include <reader.h>
Inherits Json::CharReader::Factory.
Public Member Functions | |
| CharReader * | newCharReader () const override |
| bool | validate (Json::Value *invalid) const |
| Value & | operator[] (const String &key) |
| A simple way to update a specific setting. More... | |
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:
| Value& Json::CharReaderBuilder::operator[] | ( | const String & | key | ) |
A simple way to update a specific setting.
|
static |
Called by ctor, but you can use this to reset settings_.
|
static |
Same as old Features::strictMode().
| bool Json::CharReaderBuilder::validate | ( | Json::Value * | invalid | ) | const |
| Json::Value Json::CharReaderBuilder::settings_ |
Configuration of this builder.
These are case-sensitive. Available settings (case-sensitive):
"collectComments": false or true"allowComments": false or true"allowTrailingCommas": false or true"strictRoot": false or true"allowDroppedNullPlaceholders": false or true"allowNumericKeys": false or true"allowSingleQuotes": false or true"stackLimit": integerreadValue()) will cause an exception."failIfExtra": false or trueparse() returns false when extra non-whitespace trails the JSON value in the input string."rejectDupKeys": false or trueparse() returns false when a key is duplicated within an object."allowSpecialFloats": false or true"skipBom": false or trueYou can examine 'settings_` yourself to see the defaults. You can also write and read them just like any JSON Value.
1.8.13