JsonCpp project page
JsonCpp home page
include
json
features.h
Go to the documentation of this file.
1
// Copyright 2007-2010 Baptiste Lepilleur
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 CPPTL_JSON_FEATURES_H_INCLUDED
7
#define CPPTL_JSON_FEATURES_H_INCLUDED
8
9
#if !defined(JSON_IS_AMALGAMATION)
10
#include "
forwards.h
"
11
#endif // if !defined(JSON_IS_AMALGAMATION)
12
13
namespace
Json
{
14
19
class
JSON_API
Features
{
20
public
:
27
static
Features
all();
28
35
static
Features
strictMode();
36
39
Features
();
40
42
bool
allowComments_
;
43
46
bool
strictRoot_
;
47
49
bool
allowDroppedNullPlaceholders_
;
50
52
bool
allowNumericKeys_
;
53
};
54
55
}
// namespace Json
56
57
#endif // CPPTL_JSON_FEATURES_H_INCLUDED
forwards.h
Json::Features::allowDroppedNullPlaceholders_
bool allowDroppedNullPlaceholders_
true if dropped null placeholders are allowed. Default: false.
Definition:
features.h:49
Json::Features::allowNumericKeys_
bool allowNumericKeys_
true if numeric object key are allowed. Default: false.
Definition:
features.h:52
Json
JSON (JavaScript Object Notation).
Definition:
allocator.h:12
JSON_API
#define JSON_API
If defined, indicates that the source file is amalgated to prevent private header inclusion.
Definition:
config.h:53
Json::Features::allowComments_
bool allowComments_
true if comments are allowed. Default: true.
Definition:
features.h:42
Json::Features::strictRoot_
bool strictRoot_
true if root must be either an array or an object value.
Definition:
features.h:46
Json::Features
Configuration passed to reader and writer.
Definition:
features.h:19