Closed kezz closed 1 year ago
I think it's worthwhile to port the LegacyHoverEventSerializer and text-serializer-gson-legacy-impl over to JsonComponentSerializer
-- it doesn't have any direct gson deps.
With options, I think it's worthwhile to have a common builder interface exposed as well -- since there are a few configurable elements.
I'm not sure what your goals were with the Fallback
interface were -- I don't see it having any practical effect since you already orElse
to the fallback without needing service discovery.
This PR adds a new module providing an implementation agnostic JSON serializer. The intention behind this PR is to allow platforms to swap between or use alternative implementations of a json serializer (see #839) whilst still allowing consumers of the platform to work regardless of the backing impl.
work that needs doing:
[ ] do we want a common flavour of thenot worth doing in this first revisionProvider
services that normal serializers have, intended to be implemented by platforms?