Interface JSONComponentSerializer
- All Superinterfaces:
ComponentDecoder<String, Component>, ComponentEncoder<Component, String>, ComponentSerializer<Component, Component, String>
- All Known Subinterfaces:
GsonComponentSerializer
A JSON component serializer.
This serializer exposes a common superset of functionality across any number of JSON library implementations. For more specialized operations, users may need to refer to specific implementations.
- Since:
- 4.14.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder forJSONComponentSerializerinstances that delegates to the active serializer.static interfaceAJSONComponentSerializerservice provider. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionbuilder()Get a builder to create a customized JSON serializer instance.static JSONComponentSerializerjson()Gets a component serializer for JSON serialization and deserialization.Methods inherited from interface ComponentSerializer
deserialize, deserializeOr, deserializeOrNull, serialize, serializeOr, serializeOrNull
-
Method Details
-
json
Gets a component serializer for JSON serialization and deserialization.- Returns:
- a JSON component serializer
- Since:
- 4.14.0
-
builder
Get a builder to create a customized JSON serializer instance.- Returns:
- the new builder
- Since:
- 4.14.0
-