格式化选项 更多...
#include <json.hpp>
Public 类型 | |
| using | jFormat = std::ios_base& (*)(std::ios_base&) |
Public 成员函数 | |
| Format (int tabsize=-1) | |
| 设置格式化选项 | |
| operator jFormat () | |
静态 Public 成员函数 | |
| static bool | isFormat () |
| static int | tabSize () |
友元 | |
| template<typename CharT > | |
| class | Value |
格式化选项
这个结构用于控制 JSON 序列化的格式 在 JSON 序列化时,可以通过设置这个结构的成员变量来控制格式化选项 默认情况下,会输出没有格式化的 JSON 字符串(不包含冗余空白符)
| using GFt::json::Format::jFormat = std::ios_base& (*)(std::ios_base&) |
|
inline |
设置格式化选项
| tabsize | 一个整数,表示一个缩进单位的空格数,默认为 -1 表示不格式化 |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
friend |