1 #ifndef JSON_SPIRIT_WRITER_OPTIONS
2 #define JSON_SPIRIT_WRITER_OPTIONS
4 // Copyright John W. Wilkinson 2007 - 2014
5 // Distributed under the MIT License, see accompanying file LICENSE.txt
7 // json spirit version 4.08
9 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
15 enum Output_options
{ none
= 0, // default options
17 pretty_print
= 0x01, // Add whitespace to format the output nicely.
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.
24 remove_trailing_zeros
= 0x04,
25 // no longer used kept for backwards compatibility
26 single_line_arrays
= 0x08,
27 // pretty printing except that arrays printed on single lines unless they contain
28 // composite elements, i.e. objects or arrays
29 always_escape_nonascii
= 0x10,
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