| Package | Description |
|---|---|
| org.dromara.hutool.json.support |
JSON的支持类,如用于转换和BeanPath操作的对象,还有用于格式化的对象等
|
| org.dromara.hutool.json.writer |
JSON对象自定义转JSON字符串实现
|
| Modifier and Type | Field and Description |
|---|---|
static JSONFormatStyle |
JSONFormatStyle.COMPACT
默认紧凑风格:
无换行
无缩进
',' 和 ':'后无空格
|
static JSONFormatStyle |
JSONFormatStyle.PRETTY
默认格式化风格:
换行符:
"\n"
双空格缩进
',' 和 ':'后加空格
|
| Modifier and Type | Method and Description |
|---|---|
static JSONFormatStyle |
JSONFormatStyle.getStyle(int indentFactor)
获取格式化风格
|
| Constructor and Description |
|---|
JSONWriter(Appendable appendable,
JSONFormatStyle formatStyle,
int level,
JSONConfig config,
Predicate<MutableEntry<Object,Object>> predicate)
构造
|
Copyright © 2025. All rights reserved.