This commit is contained in:
Looly
2021-01-07 21:40:53 +08:00
parent 0a768ad2c6
commit 80c3966211
3 changed files with 9 additions and 9 deletions

View File

@@ -1,8 +1,8 @@
package cn.hutool.json;
/**
* <code>JSONString</code>接口定义了一个<code>toJSONString()</code><br>
* 实现此接口的类可以通过实现<code>toJSONString()</code>方法来改变转JSON字符串的方式。
* {@code JSONString}接口定义了一个{@code toJSONString()}<br>
* 实现此接口的类可以通过实现{@code toJSONString()}方法来改变转JSON字符串的方式。
*
* @author Looly
*

View File

@@ -35,7 +35,7 @@ public class JSONSupport implements JSONString{
* @return 美化的JSON
*/
public String toPrettyString() {
return toJSON().toJSONString(4);
return toJSON().toStringPretty();
}
@Override