Build a CharReader implementation. More...
#include <json/reader.h>
Inherits Json::CharReader::Factory.
Build a CharReader implementation.
Usage:
builder["collectComments"] = false;
Value value;
CharReaderBuilder()
Definition: json_reader.cpp:1881
JSON (JavaScript Object Notation).
Definition: allocator.h:14
std::basic_string< char, std::char_traits< char >, Allocator< char > > String
Definition: config.h:132
bool parseFromStream(CharReader::Factory const &, IStream &, Value *root, String *errs)
Consume entire stream and use its begin/end.
Definition: json_reader.cpp:1971
◆ CharReaderBuilder() Json::CharReaderBuilder::CharReaderBuilder ( ) ◆ ~CharReaderBuilder() Json::CharReaderBuilder::~CharReaderBuilder ( ) overridedefault ◆ newCharReader() CharReader * Json::CharReaderBuilder::newCharReader ( ) const overridevirtual ◆ operator[]() Value & Json::CharReaderBuilder::operator[] ( const String & key )A simple way to update a specific setting.
◆ setDefaults() void Json::CharReaderBuilder::setDefaults ( Json::Value * settings ) staticCalled by ctor, but you can use this to reset settings_.
[CharReaderBuilderDefaults]
[CharReaderBuilderDefaults]
◆ strictMode() void Json::CharReaderBuilder::strictMode ( Json::Value * settings ) staticSame as old Features::strictMode().
[CharReaderBuilderStrictMode]
[CharReaderBuilderStrictMode]
◆ validate() bool Json::CharReaderBuilder::validate ( Json::Value * invalid ) constConfiguration 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": 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.
The documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4