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) final voidJSONWriter.config(JSONWriter.Feature feature, boolean state) voidJSONWriter.Context.config(JSONWriter.Feature... features) voidJSONWriter.Context.config(JSONWriter.Feature feature, boolean state) 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) static <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) static JSONWriter.ContextJSONFactory.createWriteContext(ObjectWriterProvider provider, JSONWriter.Feature... 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) final booleanJSONWriter.isEnabled(JSONWriter.Feature feature) static JSONWriterJSONWriter.of(JSONWriter.Feature... features) static JSONWriterJSONWriter.of(ObjectWriterProvider provider, JSONWriter.Feature... features) static JSONWriterJSONWriter.ofJSONB(JSONWriter.Feature... features) static JSONWriterJSONWriter.ofUTF16(JSONWriter.Feature... features) static JSONWriterJSONWriter.ofUTF8(JSONWriter.Feature... features) static byte[]JSONB.toBytes(Object object, JSONWriter.Feature... features) static byte[]JSONB.toBytes(Object object, SymbolTable symbolTable, Filter[] filters, JSONWriter.Feature... features) static byte[]JSONB.toBytes(Object object, SymbolTable symbolTable, JSONWriter.Feature... features) static 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) Constructors in com.alibaba.fastjson2 with parameters of type JSONWriter.FeatureModifierConstructorDescriptionContext(JSONWriter.Feature... features) Context(ObjectWriterProvider provider, JSONWriter.Feature... features) Context(String format, JSONWriter.Feature... 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)