Interface JsonEventObject

All Superinterfaces:
Map<String,Object>

public interface JsonEventObject extends Map<String,Object>
All JSON underlying event objects implement this interface.

In general, byte code does not use the Map methods and instead uses the implementation class fields directly.

This is a read-only implementation of the Map interface.

All predefined properties as well as all dynamic properties become available through the Map interface.

  • Method Details

    • writeTo

      void writeTo(Writer writer, WriterConfig config) throws IOException
      Write JSON to the provided writer and using the provided configuration.
      Parameters:
      writer - writer
      config - JSON writer settings
      Throws:
      IOException - when an IO exception occurs
    • toString

      String toString(WriterConfig config)
      Returns the JSON string given a writer configuration
      Parameters:
      config - JSON writer settings
      Returns:
      JSON
    • toString

      String toString()
      Returns the JSON string using WriterConfig.MINIMAL.
      Overrides:
      toString in class Object
      Returns:
      JSON