Pyrogenesis trunk
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
json_spirit_writer_options.h
Go to the documentation of this file.
1#ifndef JSON_SPIRIT_WRITER_OPTIONS
2#define JSON_SPIRIT_WRITER_OPTIONS
3
4// Copyright John W. Wilkinson 2007 - 2014
5// Distributed under the MIT License, see accompanying file LICENSE.txt
6
7// json spirit version 4.08
8
9#if defined(_MSC_VER) && (_MSC_VER >= 1020)
10# pragma once
11#endif
12
13namespace json_spirit
14{
15 enum Output_options{ none = 0, // default options
16
17 pretty_print = 0x01, // Add whitespace to format the output nicely.
18
19 raw_utf8 = 0x02, // This prevents non-printable characters from being escapted using "\uNNNN" notation.
20 // Note, this is an extension to the JSON standard. It disables the escaping of
21 // non-printable characters allowing UTF-8 sequences held in 8 bit char strings
22 // to pass through unaltered.
23
25 // no longer used kept for backwards compatibility
27 // pretty printing except that arrays printed on single lines unless they contain
28 // composite elements, i.e. objects or arrays
30 // all unicode wide characters are escaped, i.e. outputed as "\uXXXX", even if they are
31 // printable under the current locale, ascii printable chars are not escaped
32 };
33}
34
35#endif
Definition: json_spirit_error_position.h:16
Output_options
Definition: json_spirit_writer_options.h:15
@ none
Definition: json_spirit_writer_options.h:15
@ single_line_arrays
Definition: json_spirit_writer_options.h:26
@ raw_utf8
Definition: json_spirit_writer_options.h:19
@ remove_trailing_zeros
Definition: json_spirit_writer_options.h:24
@ pretty_print
Definition: json_spirit_writer_options.h:17
@ always_escape_nonascii
Definition: json_spirit_writer_options.h:29