json_config
Defined in header: <orcus/config.hpp>
-
struct json_config
-
Public Members
-
std::string input_path
Path of the JSON file being parsed, in case the JSON string originates from a file. This parameter is required if external JSON files need to be resolved. Otherwise it’s optional.
-
bool preserve_object_order = true
Control whether or not to preserve the order of object’s child name/value pairs. By definition, JSON’s object is an unordered set of name/value pairs, but in some cases preserving the original order may be desirable.
-
bool resolve_references = false
Control whether or not to resolve JSON references to external files.
-
bool persistent_string_values = true
When true, the document tree should allocate memory and hold copies of string values in the tree. When false, no extra memory is allocated for string values in the tree and the string values simply point to the original json string stream.
In other words, when this option is set to false, the caller must ensure that the json string stream instance stays alive for the entire life cycle of the document tree.
-
std::string input_path