- All Implemented Interfaces:
Provider
JSON 序列化提供者,实现对象到 JSON 字符串的转换
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JsonProvider
public JsonProvider()
-
Method Details
-
serialize
将对象序列化为 JSON 字符串
- Specified by:
serialize in interface Provider
- Parameters:
object - 要序列化的对象
- Returns:
- 序列化后的 JSON 字符串