Interface JSONComponentSerializer

All Superinterfaces:
ComponentDecoder<String, Component>, ComponentEncoder<Component, String>, ComponentSerializer<Component, Component, String>
All Known Subinterfaces:
GsonComponentSerializer

public interface JSONComponentSerializer extends 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
  • Method Details

    • json

      static JSONComponentSerializer 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