Uses of Class
com.alibaba.fastjson2.JSONWriter.Context
Packages that use JSONWriter.Context
-
Uses of JSONWriter.Context in com.alibaba.fastjson2
Fields in com.alibaba.fastjson2 declared as JSONWriter.ContextMethods in com.alibaba.fastjson2 that return JSONWriter.ContextModifier and TypeMethodDescriptionstatic JSONWriter.ContextJSONFactory.createWriteContext()Creates a new JSON writer context with default settings.static JSONWriter.ContextJSONFactory.createWriteContext(JSONWriter.Feature... features) Creates a new JSON writer context with the specified features.static JSONWriter.ContextJSONFactory.createWriteContext(ObjectWriterProvider provider, JSONWriter.Feature... features) Creates a new JSON writer context with the specified provider and features.final JSONWriter.ContextJSONWriter.getContext()Gets the context used by this JSONWriter.JSONPath.getWriterContext()Gets the writing context, creating it if necessaryMethods in com.alibaba.fastjson2 with parameters of type JSONWriter.ContextModifier and TypeMethodDescriptionstatic JSONWriterJSONWriter.of(JSONWriter.Context context) Creates a new JSONWriter with the specified context.static JSONWriterJSONWriter.ofJSONB(JSONWriter.Context context) Creates a new JSONWriter instance for JSONB (binary JSON) format with the specified context.static JSONWriterJSONWriter.ofJSONB(JSONWriter.Context context, SymbolTable symbolTable) Creates a new JSONWriter instance for JSONB (binary JSON) format with the specified context and symbol table.static JSONWriterJSONWriter.ofUTF8(JSONWriter.Context context) Creates a new JSONWriter instance using UTF-8 encoding with the specified context.JSONPath.setWriterContext(JSONWriter.Context writerContext) Sets the writing contextstatic byte[]JSONB.toBytes(Object object, JSONWriter.Context context) Converts an object to JSONB bytes with specified contextstatic byte[]JSONB.toBytes(Object object, JSONWriter.Context context, SymbolTable symbolTable, JSONWriter.Feature... features) Converts an object to JSONB bytes with specified context, symbol table and featuresstatic byte[]JSON.toJSONBytes(Object object, Charset charset, JSONWriter.Context context) Serializes the specified object to the json byte arraystatic StringJSON.toJSONString(Object object, JSONWriter.Context context) Serializes the specified object to the json stringstatic intJSON.writeTo(OutputStream out, Object object, JSONWriter.Context context) Serializes the specified object to the json byte array and write it toOutputStreamConstructors in com.alibaba.fastjson2 with parameters of type JSONWriter.ContextModifierConstructorDescriptionprotectedJSONWriter(JSONWriter.Context context, SymbolTable symbolTable, boolean jsonb, Charset charset)