| 程序包 | 说明 |
|---|---|
| com.blade.kit.json |
| 限定符和类型 | 类和说明 |
|---|---|
class |
PrettyPrint
Enables human readable JSON output by inserting whitespace between values.after commas and
colons.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static WriterConfig |
WriterConfig.MINIMAL
Write JSON in its minimal form, without any additional whitespace.
|
static WriterConfig |
WriterConfig.PRETTY_PRINT
Write JSON in pretty-print, with each value on a separate line and an indentation of two
spaces.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
JSONValue.toString(WriterConfig config)
Returns the JSON string for this value using the given formatting.
|
void |
JSONValue.writeTo(Writer writer,
WriterConfig config)
Writes the JSON representation of this value to the given writer using
the given formatting.
|
Copyright © 2016. All rights reserved.