Class BoxStructSerializer

java.lang.Object
ortus.boxlang.runtime.util.conversion.serializers.BoxStructSerializer
All Implemented Interfaces:
com.fasterxml.jackson.jr.ob.api.ValueWriter

public class BoxStructSerializer extends Object implements com.fasterxml.jackson.jr.ob.api.ValueWriter
This class provides JSON Serialization of a BoxLang Struct
  • Constructor Details

    • BoxStructSerializer

      public BoxStructSerializer()
  • Method Details

    • writeValue

      public void writeValue(com.fasterxml.jackson.jr.ob.impl.JSONWriter context, com.fasterxml.jackson.core.JsonGenerator g, Object value) throws IOException
      Custom BoxLang Struct Serializer
      Specified by:
      writeValue in interface com.fasterxml.jackson.jr.ob.api.ValueWriter
      Throws:
      IOException
    • valueType

      public Class<?> valueType()
      Specified by:
      valueType in interface com.fasterxml.jackson.jr.ob.api.ValueWriter