| Package | Description |
|---|---|
| com.alibaba.fastjson2 | |
| com.alibaba.fastjson2.support.config | |
| com.alibaba.fastjson2.writer |
| Modifier and Type | Field and Description |
|---|---|
(package private) SymbolTable |
JSONBDump.symbolTable |
(package private) SymbolTable |
JSONReader.Context.symbolTable |
(package private) SymbolTable |
JSONReaderJSONB.symbolTable |
SymbolTable |
JSONWriter.symbolTable |
| Modifier and Type | Method and Description |
|---|---|
SymbolTable |
JSONWriter.getSymbolTable()
Gets the symbol table used by this JSONWriter.
|
static SymbolTable |
JSONB.symbolTable(java.lang.String... names)
Creates a symbol table with the specified names
|
| Modifier and Type | Method and Description |
|---|---|
static JSONReader.Context |
JSONFactory.createReadContext(SymbolTable symbolTable) |
static JSONReader.Context |
JSONFactory.createReadContext(SymbolTable symbolTable,
JSONReader.Feature... features) |
static void |
JSONB.dump(byte[] jsonbBytes,
SymbolTable symbolTable)
Dumps the JSONB bytes to standard output for debugging purposes with a symbol table
|
static JSONReader |
JSONReader.ofJSONB(byte[] bytes,
int offset,
int length,
SymbolTable symbolTable) |
static JSONWriter |
JSONWriter.ofJSONB(JSONWriter.Context context,
SymbolTable symbolTable)
Creates a new JSONWriter instance for JSONB (binary JSON) format with the specified context and symbol table.
|
static JSONWriter |
JSONWriter.ofJSONB(SymbolTable symbolTable)
Creates a new JSONWriter instance for JSONB (binary JSON) format with the specified symbol table.
|
static java.lang.Object |
JSONB.parse(byte[] jsonbBytes,
SymbolTable symbolTable,
JSONReader.Feature... features)
Parses JSONB bytes to an object with a symbol table and features
|
static <T> T |
JSONB.parseObject(byte[] jsonbBytes,
int off,
int len,
java.lang.Class<T> objectClass,
SymbolTable symbolTable)
Parses JSONB bytes with offset and length to an object of the specified class with a symbol table
|
static <T> T |
JSONB.parseObject(byte[] jsonbBytes,
int off,
int len,
java.lang.Class<T> objectClass,
SymbolTable symbolTable,
JSONReader.Feature... features)
Parses JSONB bytes with offset and length to an object of the specified class with a symbol table and features
|
static <T> T |
JSONB.parseObject(byte[] jsonbBytes,
int off,
int len,
java.lang.reflect.Type objectClass,
SymbolTable symbolTable)
Parses JSONB bytes with offset and length to an object of the specified type with a symbol table
|
static <T> T |
JSONB.parseObject(byte[] jsonbBytes,
int off,
int len,
java.lang.reflect.Type objectClass,
SymbolTable symbolTable,
JSONReader.Feature... features)
Parses JSONB bytes with offset and length to an object of the specified type with a symbol table and features
|
static <T> T |
JSONB.parseObject(byte[] jsonbBytes,
java.lang.reflect.Type objectType,
SymbolTable symbolTable)
Parses JSONB bytes to an object of the specified type with a symbol table
|
static <T> T |
JSONB.parseObject(byte[] jsonbBytes,
java.lang.reflect.Type objectType,
SymbolTable symbolTable,
Filter[] filters,
JSONReader.Feature... features)
Parses JSONB bytes to an object of the specified type with a symbol table, filters and features
|
static <T> T |
JSONB.parseObject(byte[] jsonbBytes,
java.lang.reflect.Type objectType,
SymbolTable symbolTable,
JSONReader.Feature... features)
Parses JSONB bytes to an object of the specified type with a symbol table and features
|
static byte[] |
JSONB.toBytes(java.lang.Object object,
JSONWriter.Context context,
SymbolTable symbolTable,
JSONWriter.Feature... features)
Converts an object to JSONB bytes with specified context, symbol table and features
|
static byte[] |
JSONB.toBytes(java.lang.Object object,
SymbolTable symbolTable)
Converts an object to JSONB bytes with a symbol table
|
static byte[] |
JSONB.toBytes(java.lang.Object object,
SymbolTable symbolTable,
Filter[] filters,
JSONWriter.Feature... features)
Converts an object to JSONB bytes with a symbol table, filters and features
|
static byte[] |
JSONB.toBytes(java.lang.Object object,
SymbolTable symbolTable,
JSONWriter.Feature... features)
Converts an object to JSONB bytes with a symbol table and features
|
static java.lang.String |
JSONB.toJSONString(byte[] jsonbBytes,
SymbolTable symbolTable)
Converts JSONB bytes to a JSON string with a symbol table
|
static java.lang.String |
JSONB.toJSONString(byte[] jsonbBytes,
SymbolTable symbolTable,
boolean raw)
Converts JSONB bytes to a JSON string with a symbol table
|
static int |
JSONB.IO.writeSymbol(byte[] bytes,
int off,
java.lang.String str,
SymbolTable symbolTable)
Writes a string with a symbol table to a byte array
|
| Constructor and Description |
|---|
Context(ObjectReaderProvider provider,
SymbolTable symbolTable)
Creates a new Context with the specified object reader provider and symbol table.
|
Context(ObjectReaderProvider provider,
SymbolTable symbolTable,
Filter[] filters,
JSONReader.Feature... features)
Creates a new Context with the specified object reader provider, symbol table, filters, and features.
|
Context(ObjectReaderProvider provider,
SymbolTable symbolTable,
JSONReader.Feature... features)
Creates a new Context with the specified object reader provider, symbol table, and features.
|
JSONBDump(byte[] bytes,
SymbolTable symbolTable,
boolean raw) |
JSONWriter(JSONWriter.Context context,
SymbolTable symbolTable,
boolean jsonb,
java.nio.charset.Charset charset) |
JSONWriterJSONB(JSONWriter.Context ctx,
SymbolTable symbolTable) |
| Modifier and Type | Field and Description |
|---|---|
private SymbolTable |
FastJsonConfig.symbolTable
JSONB symbol table.
|
| Modifier and Type | Method and Description |
|---|---|
SymbolTable |
FastJsonConfig.getSymbolTable()
Gets symbol table.
|
| Modifier and Type | Method and Description |
|---|---|
private boolean |
ObjectWriterAdapter.writeClassInfoSymbol(JSONWriter jsonWriter,
SymbolTable symbolTable) |
int |
FieldWriter.writeEnumValueJSONB(byte[] bytes,
int off,
java.lang.Enum e,
SymbolTable symbolTable,
long features) |
int |
FieldWriterEnum.writeEnumValueJSONB(byte[] bytes,
int off,
java.lang.Enum e,
SymbolTable symbolTable,
long features) |
private boolean |
FieldWriter.writeFieldNameSymbol(JSONWriter jsonWriter,
SymbolTable symbolTable) |
int |
FieldWriter.writeFieldNameSymbol(SymbolTable symbolTable) |
private void |
FieldWriterEnum.writeJSONBToString(JSONWriter jsonWriter,
java.lang.Enum e,
SymbolTable symbolTable) |
private boolean |
FieldWriterEnum.writeSymbolNameOrdinal(JSONWriter jsonWriter,
int ordinal,
SymbolTable symbolTable) |