| Modifier and Type | Method and Description |
|---|---|
static JSONWriter.Context |
JSON.createWriteContext(SerializeConfig config,
int featuresValue,
SerializerFeature... features) |
| Modifier and Type | Method and Description |
|---|---|
static void |
JSON.configFilter(JSONWriter.Context context,
SerializeFilter filter) |
| Modifier and Type | Field and Description |
|---|---|
JSONWriter.Context |
JSONWriter.context |
(package private) JSONWriter.Context |
JSONPath.writerContext
Context for JSON writing operations
|
| Modifier and Type | Method and Description |
|---|---|
static JSONWriter.Context |
JSONFactory.createWriteContext()
Creates a new JSON writer context with default settings.
|
static JSONWriter.Context |
JSONFactory.createWriteContext(JSONWriter.Feature... features)
Creates a new JSON writer context with the specified features.
|
static JSONWriter.Context |
JSONFactory.createWriteContext(ObjectWriterProvider provider,
JSONWriter.Feature... features)
Creates a new JSON writer context with the specified provider and features.
|
JSONWriter.Context |
JSONWriter.getContext()
Gets the context used by this JSONWriter.
|
JSONWriter.Context |
JSONPath.getWriterContext()
Gets the writing context, creating it if necessary
|
| Modifier and Type | Method and Description |
|---|---|
static JSONWriter |
JSONWriter.of(JSONWriter.Context context)
Creates a new JSONWriter with the specified context.
|
static JSONWriter |
JSONWriter.ofJSONB(JSONWriter.Context context)
Creates a new JSONWriter instance for JSONB (binary JSON) format with the specified context.
|
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.ofUTF8(JSONWriter.Context context)
Creates a new JSONWriter instance using UTF-8 encoding with the specified context.
|
JSONPath |
JSONPath.setWriterContext(JSONWriter.Context writerContext)
Sets the writing context
|
static byte[] |
JSONB.toBytes(java.lang.Object object,
JSONWriter.Context context)
Converts an object to JSONB bytes with specified context
|
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[] |
JSON.toJSONBytes(java.lang.Object object,
java.nio.charset.Charset charset,
JSONWriter.Context context)
Serializes the specified object to the json byte array
|
static java.lang.String |
JSON.toJSONString(java.lang.Object object,
JSONWriter.Context context)
Serializes the specified object to the json string
|
static int |
JSON.writeTo(java.io.OutputStream out,
java.lang.Object object,
JSONWriter.Context context)
Serializes the specified object to the json byte array and write it to
OutputStream |
| Constructor and Description |
|---|
JSONWriter(JSONWriter.Context context,
SymbolTable symbolTable,
boolean jsonb,
java.nio.charset.Charset charset) |
JSONWriterJSONB(JSONWriter.Context ctx,
SymbolTable symbolTable) |
JSONWriterUTF16(JSONWriter.Context ctx) |
JSONWriterUTF16JDK8(JSONWriter.Context ctx) |
JSONWriterUTF16JDK8UF(JSONWriter.Context ctx) |
JSONWriterUTF16JDK9UF(JSONWriter.Context ctx) |
JSONWriterUTF8(JSONWriter.Context ctx) |
| Modifier and Type | Field and Description |
|---|---|
private JSONWriter.Context |
FastJsonConfig.writerContext
internal cache for JSONWriter.Context, avoid repeatedly constructing new objects
|
| Modifier and Type | Method and Description |
|---|---|
JSONWriter.Context |
FastJsonConfig.writerContext() |
| Modifier and Type | Field and Description |
|---|---|
(package private) JSONWriter.Context |
JSONBCodec.JSONBEncoder.context |
(package private) JSONWriter.Context |
JSONCodec.JSONEncoder.context |
| Constructor and Description |
|---|
JSONBCodec(JSONWriter.Context writerContext,
JSONReader.Context readerContext) |
JSONBCodec(JSONWriter.Context writerContext,
JSONReader.Context readerContext,
java.lang.reflect.Type valueType) |
JSONBEncoder(JSONWriter.Context context) |
JSONCodec(JSONWriter.Context writerContext,
JSONReader.Context readerContext) |
JSONCodec(JSONWriter.Context writerContext,
JSONReader.Context readerContext,
java.nio.charset.Charset charset) |
JSONCodec(JSONWriter.Context writerContext,
JSONReader.Context readerContext,
java.lang.reflect.Type valueType,
java.nio.charset.Charset charset) |
JSONEncoder(JSONWriter.Context context) |
JSONEncoder(JSONWriter.Context context,
java.nio.charset.Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
private void |
Fastjson2Encoder.configFilter(JSONWriter.Context context,
Filter... filters)
Deprecated.
|