Class JSONBKt

  • All Implemented Interfaces:

    
    public final class JSONBKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static ByteArray toJSONB(Boolean $self) Serializes this boolean value to jsonb byte array
      final static ByteArray toJSONB(Integer $self) Serializes this integer value to jsonb byte array
      final static ByteArray toJSONB(Long $self) Serializes this long value to jsonb byte array
      final static ByteArray toJSONB(Object $self) Serializes this object to jsonb byte arrayE.g.
      final static ByteArray toJSONB(Object $self, SymbolTable symbolTable) Serializes this object to jsonb byte array with the specified symbolTable
      final static ByteArray toJSONB(Object $self, SymbolTable symbolTable, JSONWriter.Feature features) Serializes this object to jsonb byte array with the specified features and symbolTable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • toJSONB

         final static ByteArray toJSONB(Object $self)

        Serializes this object to jsonb byte array

        E.g.

        val obj = ...
        val text = obj.toJSONB()
        Returns:

        ByteArray

        Since:

        2.0.7

      • toJSONB

         final static ByteArray toJSONB(Object $self, SymbolTable symbolTable)

        Serializes this object to jsonb byte array with the specified symbolTable

        Returns:

        ByteArray

        Since:

        2.0.7

      • toJSONB

         final static ByteArray toJSONB(Object $self, SymbolTable symbolTable, JSONWriter.Feature features)

        Serializes this object to jsonb byte array with the specified features and symbolTable

        Returns:

        ByteArray

        Since:

        2.0.7