Interface JSONComponentSerializer
- All Superinterfaces:
ComponentDecoder<String,
,Component> ComponentEncoder<Component,
,String> ComponentSerializer<Component,
Component, String>
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
Modifier and TypeInterfaceDescriptionstatic interface
A builder forJSONComponentSerializer
instances that delegates to the active serializer.static interface
AJSONComponentSerializer
service provider. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull JSONComponentSerializer.Builder
builder()
Get a builder to create a customized JSON serializer instance.static @NotNull JSONComponentSerializer
json()
Gets a component serializer for JSON serialization and deserialization.Methods inherited from interface net.kyori.adventure.text.serializer.ComponentSerializer
deseializeOrNull, 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
-