Package com.alibaba.fastjson2
Class JSONBKt
-
- All Implemented Interfaces:
public final class JSONBKt
-
-
Method Summary
Modifier and Type Method Description final static ByteArraytoJSONB(Boolean $self)Serializes this boolean value to jsonb byte array final static ByteArraytoJSONB(Integer $self)Serializes this integer value to jsonb byte array final static ByteArraytoJSONB(Long $self)Serializes this long value to jsonb byte array final static ByteArraytoJSONB(Object $self)Serializes this object to jsonb byte arrayE.g. final static ByteArraytoJSONB(Object $self, SymbolTable symbolTable)Serializes this object to jsonb byte array with the specified symbolTable final static ByteArraytoJSONB(Object $self, SymbolTable symbolTable, JSONWriter.Feature features)Serializes this object to jsonb byte array with the specified features and symbolTable -
-
Method Detail
-
toJSONB
final static ByteArray toJSONB(Boolean $self)
Serializes this boolean value to jsonb byte array
- Returns:
- Since:
2.0.7
-
toJSONB
final static ByteArray toJSONB(Integer $self)
Serializes this integer value to jsonb byte array
- Returns:
- Since:
2.0.7
-
toJSONB
final static ByteArray toJSONB(Long $self)
Serializes this long value to jsonb byte array
- Returns:
- Since:
2.0.7
-
toJSONB
final static ByteArray toJSONB(Object $self)
Serializes this object to jsonb byte array
E.g.
val obj = ... val text = obj.toJSONB()- Returns:
- 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:
- Since:
2.0.7
-
-
-
-