类 JsonUtil
java.lang.Object
io.github.a2ap.core.util.JsonUtil
Utility class for JSON serialization and deserialization operations using Jackson.
This class provides a centralized, thread-safe JSON processing facility with pre-configured
ObjectMapper settings optimized for the A2A protocol. It handles common JSON operations
including object serialization, deserialization with type safety, and JSON validation.
Key features:
- Ignores unknown properties during deserialization for backward compatibility
- Supports Java 8 time types through JavaTimeModule
- Provides null-safe operations with proper error handling
- Includes JSON string validation utilities
All methods are static and thread-safe, making this class suitable for concurrent usage
across the A2A framework.
-
方法概要
修饰符和类型方法说明static com.fasterxml.jackson.databind.JsonNodestatic <T> Tstatic <T> Tstatic booleancheck if the string is a json stringstatic String
-
方法详细资料
-
toJson
-
fromJson
-
fromJson
-
fromJson
-
isJsonStr
check if the string is a json string- 参数:
jsonStr- json string- 返回:
- true if the string is a json string
-