JsonCpp project page Classes Namespace JsonCpp home page

json_features.h
Go to the documentation of this file.
1// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors
2// Distributed under MIT license, or public domain if desired and
3// recognized in your jurisdiction.
4// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5
6#ifndef JSON_FEATURES_H_INCLUDED
7#define JSON_FEATURES_H_INCLUDED
8
9#if !defined(JSON_IS_AMALGAMATION)
10#include "forwards.h"
11#endif // if !defined(JSON_IS_AMALGAMATION)
12
13#pragma pack(push, 8)
14
15namespace Json {
16
22public:
29 static Features all();
30
37 static Features strictMode();
38
42
44 bool allowComments_{true};
45
48 bool strictRoot_{false};
49
51 bool allowDroppedNullPlaceholders_{false};
52
54 bool allowNumericKeys_{false};
55};
56
57} // namespace Json
58
59#pragma pack(pop)
60
61#endif // JSON_FEATURES_H_INCLUDED
Configuration passed to reader and writer.
Definition: json_features.h:21
Features()
Initialize the configuration like JsonConfig::allFeatures;.
#define JSON_API
If defined, indicates that the source file is amalgamated to prevent private header inclusion.
Definition: config.h:50
JSON (JavaScript Object Notation).
Definition: allocator.h:14