Class ToonDecoder

java.lang.Object
io.micronaut.serde.toon.util.ToonDecoder

@Internal @Singleton public final class ToonDecoder extends Object
Builds a JSON tree from a TOON document.

Each call reads the stream and parses the text with a fresh ToonDocumentParser, which does the line pre-processing and recursive-descent parsing.

Since:
3.3.0
See Also:
  • Constructor Details

    • ToonDecoder

      public ToonDecoder(SerdeToonConfiguration toonConfiguration)
      Creates a TOON decoder.
      Parameters:
      toonConfiguration - The TOON format configuration
  • Method Details