public class JdkValueWriter extends Object implements JSONValueWriter
枚举类和JDK内部类直接使用toString输出,不做转换。
SQLException实现了Iterable导致被识别为列表,可能造成死循环,此处按照字符串处理,见:
https://github.com/dromara/hutool/issues/1399
| Modifier and Type | Field and Description |
|---|---|
static JdkValueWriter |
INSTANCE
单例对象
|
| Constructor and Description |
|---|
JdkValueWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(Object value) |
void |
write(JSONWriter writer,
Object value)
使用
JSONWriter 写出对象 |
public static final JdkValueWriter INSTANCE
public void write(JSONWriter writer, Object value)
JSONValueWriterJSONWriter 写出对象write in interface JSONValueWriterwriter - JSONWritervalue - 被写出的值Copyright © 2024. All rights reserved.