Uses of Enum
com.alibaba.fastjson2.JSONWriter.Feature
Packages that use JSONWriter.Feature
-
Uses of JSONWriter.Feature in com.alibaba.fastjson2
Methods in com.alibaba.fastjson2 that return JSONWriter.FeatureModifier and TypeMethodDescriptionstatic JSONWriter.FeatureReturns the enum constant of this type with the specified name.static JSONWriter.Feature[]JSONWriter.Feature.values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.alibaba.fastjson2 with parameters of type JSONWriter.FeatureModifier and TypeMethodDescriptionstatic voidJSON.config(JSONWriter.Feature... features) Enable the specified features in default writerstatic voidJSON.config(JSONWriter.Feature feature, boolean state) Enable or disable the specified features in default writerfinal voidJSONWriter.config(JSONWriter.Feature... features) Configures features for this JSONWriter.final voidJSONWriter.config(JSONWriter.Feature feature, boolean state) Configures a specific feature for this JSONWriter.voidJSONWriter.Context.config(JSONWriter.Feature... features) Configures features for this context.voidJSONWriter.Context.config(JSONWriter.Feature feature, boolean state) Configures a specific feature for this context.static <T> TJSON.copy(T object, JSONWriter.Feature... features) Builds a newJSONusing the properties of the specified objectstatic <T> TJSONB.copy(T object, JSONWriter.Feature... features) Creates a deep copy of the specified objectstatic <T> TJSON.copyTo(Object object, Class<T> targetClass, JSONWriter.Feature... features) Builds a new instance of targetClass using the properties of the specified objectstatic 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.static JSONArrayJSONArray.from(Object obj, JSONWriter.Feature... writeFeatures) SeeJSON.toJSON(java.lang.Object)for detailsstatic JSONObjectJSONObject.from(Object obj, JSONWriter.Feature... writeFeatures) SeeJSON.toJSON(java.lang.Object)for detailsstatic booleanJSON.isEnabled(JSONWriter.Feature feature) Check if the default writer enables the specified featurebooleanJSONWriter.Context.isEnabled(JSONWriter.Feature feature) Checks if the specified feature is enabled in this context.final booleanJSONWriter.isEnabled(JSONWriter.Feature feature) Checks if the specified feature is enabled.static JSONWriterJSONWriter.of(JSONWriter.Feature... features) Creates a new JSONWriter with the specified features.static JSONWriterJSONWriter.of(ObjectWriterProvider provider, JSONWriter.Feature... features) Creates a new JSONWriter with the specified object writer provider and features.static JSONWriterJSONWriter.ofJSONB(JSONWriter.Feature... features) Creates a new JSONWriter instance for JSONB (binary JSON) format with the specified features.static JSONWriterJSONWriter.ofUTF16(JSONWriter.Feature... features) Creates a new JSONWriter instance using UTF-16 encoding with the specified features.static JSONWriterJSONWriter.ofUTF8(JSONWriter.Feature... features) Creates a new JSONWriter instance using UTF-8 encoding with the specified features.static 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[]JSONB.toBytes(Object object, JSONWriter.Feature... features) Converts an object to JSONB bytes with specified featuresstatic byte[]JSONB.toBytes(Object object, SymbolTable symbolTable, Filter[] filters, JSONWriter.Feature... features) Converts an object to JSONB bytes with a symbol table, filters and featuresstatic byte[]JSONB.toBytes(Object object, SymbolTable symbolTable, JSONWriter.Feature... features) Converts an object to JSONB bytes with a symbol table and featuresstatic ObjectJSON.toJSON(Object object, JSONWriter.Feature... features) Converts the specified object to aJSONArrayorJSONObject.byte[]JSONArray.toJSONBBytes(JSONWriter.Feature... features) Serialize to JSONB bytesbyte[]JSONObject.toJSONBBytes(JSONWriter.Feature... features) Serialize to JSONB bytesstatic byte[]JSON.toJSONBytes(Object object, Filter[] filters, JSONWriter.Feature... features) Serializes the specified object to the json byte arraystatic byte[]JSON.toJSONBytes(Object object, JSONWriter.Feature... features) Serializes the specified object to the json byte arraystatic byte[]JSON.toJSONBytes(Object object, String format, Filter[] filters, JSONWriter.Feature... features) Serializes the specified object to the json byte arraystatic byte[]JSON.toJSONBytes(Object object, String format, JSONWriter.Feature... features) Serializes the specified object to the json byte arraystatic byte[]JSON.toJSONBytes(Object object, Charset charset, JSONWriter.Feature... features) Serializes the specified object to the json byte arraystatic StringJSON.toJSONString(Object object, Filter[] filters, JSONWriter.Feature... features) Serializes the specified object to the json stringstatic StringJSON.toJSONString(Object object, Filter filter, JSONWriter.Feature... features) Serializes the specified object to the json stringstatic StringJSON.toJSONString(Object object, JSONWriter.Feature... features) Serializes the specified object to the json stringstatic StringJSON.toJSONString(Object object, String format, Filter[] filters, JSONWriter.Feature... features) Serializes the specified object to the json stringstatic StringJSON.toJSONString(Object object, String format, JSONWriter.Feature... features) Serializes the specified object to the json stringJSONArray.toJSONString(JSONWriter.Feature... features) Serialize to JSONStringstatic StringJSONArray.toJSONString(Object object, JSONWriter.Feature... features) Serialize Java Object to JSONStringwith specifiedJSONReader.Features enabledJSONObject.toJSONString(JSONWriter.Feature... features) Serialize to JSONStringstatic StringJSONObject.toJSONString(Object object, JSONWriter.Feature... features) Serialize Java Object to JSONStringwith specifiedJSONReader.Features enabledJSONArray.toString(JSONWriter.Feature... features) Serialize to JSONStringJSONObject.toString(JSONWriter.Feature... features) Serialize to JSONStringstatic intJSON.writeTo(OutputStream out, Object object, Filter[] filters, JSONWriter.Feature... features) Serializes the specified object to the json byte array and write it toOutputStreamstatic intJSON.writeTo(OutputStream out, Object object, JSONWriter.Feature... features) Serializes the specified object to the json byte array and write it toOutputStreamstatic intJSON.writeTo(OutputStream out, Object object, String format, Filter[] filters, JSONWriter.Feature... features) Serializes the specified object to the json byte array and write it toOutputStreamstatic intJSONB.writeTo(OutputStream out, Object object, JSONWriter.Feature... features) Writes an object to an output stream as JSONB bytesConstructors in com.alibaba.fastjson2 with parameters of type JSONWriter.FeatureModifierConstructorDescriptionContext(JSONWriter.Feature... features) Creates a new Context with the specified features.Context(ObjectWriterProvider provider, JSONWriter.Feature... features) Creates a new Context with the specified object writer provider and features.Context(String format, JSONWriter.Feature... features) Creates a new Context with the specified date format and features. -
Uses of JSONWriter.Feature in com.alibaba.fastjson2.util
Methods in com.alibaba.fastjson2.util with parameters of type JSONWriter.FeatureModifier and TypeMethodDescriptionstatic PropertiesPropertiesUtils.toProperties(ObjectWriterProvider provider, Object object, JSONWriter.Feature... features) -
Uses of JSONWriter.Feature in com.alibaba.fastjson2.writer
Methods in com.alibaba.fastjson2.writer with parameters of type JSONWriter.FeatureModifier and TypeMethodDescriptiondefault StringObjectWriter.toJSONString(T object, JSONWriter.Feature... features) Converts an object to its JSON string representation using the specified features.