public class JSONStringValueWriter extends Object implements JSONValueWriter
JSONStringer的值写出器| Modifier and Type | Field and Description |
|---|---|
static JSONStringValueWriter |
INSTANCE
单例对象
|
| Constructor and Description |
|---|
JSONStringValueWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
test(Object value) |
void |
write(JSONWriter writer,
Object jsonStringer)
输出实现了
JSONStringer接口的对象,通过调用JSONStringer.toJSONString()获取JSON字符串JSONStringer按照JSON对象对待,此方法输出的JSON字符串不包装引号。 |
public static final JSONStringValueWriter INSTANCE
public void write(JSONWriter writer, Object jsonStringer)
JSONStringer接口的对象,通过调用JSONStringer.toJSONString()获取JSON字符串JSONStringer按照JSON对象对待,此方法输出的JSON字符串不包装引号。write in interface JSONValueWriterwriter - JSONWriterjsonStringer - JSONStringerCopyright © 2024. All rights reserved.