Uses of Enum
com.alibaba.fastjson2.JSONReader.Feature
Packages that use JSONReader.Feature
-
Uses of JSONReader.Feature in com.alibaba.fastjson2
Methods in com.alibaba.fastjson2 that return JSONReader.FeatureModifier and TypeMethodDescriptionstatic JSONReader.FeatureReturns the enum constant of this type with the specified name.static JSONReader.Feature[]JSONReader.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 JSONReader.FeatureModifier and TypeMethodDescriptionstatic voidJSON.config(JSONReader.Feature... features) Enable the specified features in default readerstatic voidJSON.config(JSONReader.Feature feature, boolean state) Enable or disable the specified features in default readervoidJSONReader.Context.config(Filter[] filters, JSONReader.Feature... features) Configures filters and features for this context.voidJSONReader.Context.config(Filter filter, JSONReader.Feature... features) Configures a filter and features for this context.voidJSONReader.Context.config(JSONReader.Feature... features) Configures features for this context.voidJSONReader.Context.config(JSONReader.Feature feature, boolean state) Configures a specific feature for this context.voidJSONObject.copyTo(Object object, JSONReader.Feature... features) static JSONReader.ContextJSONFactory.createReadContext(Filter filter, JSONReader.Feature... features) static JSONReader.ContextJSONFactory.createReadContext(JSONReader.Feature... features) Creates a new JSON reader context with the specified features.static JSONReader.ContextJSONFactory.createReadContext(ObjectReaderProvider provider, JSONReader.Feature... features) static JSONReader.ContextJSONFactory.createReadContext(SymbolTable symbolTable, JSONReader.Feature... features) static JSONReader.ContextJSONFactory.createReadContext(Supplier<Map> objectSupplier, JSONReader.Feature... features) static JSONReader.ContextJSONFactory.createReadContext(Supplier<Map> objectSupplier, Supplier<List> arraySupplier, JSONReader.Feature... features) <T> List<T> JSONObject.getList(String key, Class<T> itemClass, JSONReader.Feature... features) Returns a list of objects of the specified type from the associated JSONArray in thisJSONObject.<T> TJSONArray.getObject(int index, Class<T> type, JSONReader.Feature... features) <T> TJSONArray.getObject(int index, Type type, JSONReader.Feature... features) <T> TJSONObject.getObject(String key, TypeReference<T> typeReference, JSONReader.Feature... features) Returns the result of theTypeconverter conversion of the associated value in thisJSONObject.<T> TJSONObject.getObject(String key, Class<T> type, JSONReader.Feature... features) Returns the result of theTypeconverter conversion of the associated value in thisJSONObject.<T> TJSONObject.getObject(String key, Type type, JSONReader.Feature... features) Returns the result of theTypeconverter conversion of the associated value in thisJSONObject.static booleanJSON.isEnabled(JSONReader.Feature feature) Check if the default reader enables the specified featurebooleanJSONReader.Context.isEnabled(JSONReader.Feature feature) Checks if the specified feature is enabled in this context.static booleanJSONReader.Feature.isEnabled(long features, JSONReader.Feature feature) Checks if the specified feature is enabled in the given features bitmask.final booleanJSONReader.isEnabled(JSONReader.Feature feature) Checks if a specific feature is enabled in the reading context.static booleanJSON.isValid(String text, JSONReader.Feature... features) Verify that the json string is legal json textstatic JSONPathJSONPath.of(String[] paths, Type[] types, JSONReader.Feature... features) Creates a multi-path JSONPathstatic JSONPathJSONPath.of(String[] paths, Type[] types, String[] formats, long[] pathFeatures, ZoneId zoneId, JSONReader.Feature... features) Creates a multi-path JSONPathstatic longJSONReader.Feature.of(JSONReader.Feature[] features) Combines the masks of the specified features into a single bitmask.static JSONReaderJSONReader.ofJSONB(byte[] jsonbBytes, JSONReader.Feature... features) static ObjectJSON.parse(byte[] bytes, JSONReader.Feature... features) Parses the json byte array as aJSONArrayorJSONObject.static ObjectJSON.parse(char[] chars, JSONReader.Feature... features) Parses the json char array as aJSONArrayorJSONObject.static ObjectJSON.parse(String text, int offset, int length, JSONReader.Feature... features) Parses the json string as aJSONArrayorJSONObject.static ObjectJSON.parse(String text, JSONReader.Feature... features) Parses the json string as aJSONArrayorJSONObject.static JSONArrayJSONArray.parse(String text, JSONReader.Feature... features) static ObjectJSONB.parse(byte[] jsonbBytes, JSONReader.Feature... features) Parses JSONB bytes to an object with specified featuresstatic ObjectJSONB.parse(byte[] jsonbBytes, SymbolTable symbolTable, JSONReader.Feature... features) Parses JSONB bytes to an object with a symbol table and featuresstatic JSONObjectJSONObject.parse(String text, JSONReader.Feature... features) SeeJSON.parse(java.lang.String)for detailsstatic <T> List<T> JSON.parseArray(byte[] bytes, int offset, int length, Charset charset, Class<T> type, JSONReader.Feature... features) Parses the json byte array as a list ofJSON.static <T> List<T> JSON.parseArray(byte[] bytes, Class<T> type, JSONReader.Feature... features) Parses the json byte array as a list ofJSON.static <T> List<T> JSON.parseArray(byte[] bytes, Type type, JSONReader.Feature... features) Parses the json byte array as a list ofJSON.static <T> List<T> JSON.parseArray(char[] chars, Class<T> type, JSONReader.Feature... features) Parses the json char array as a list ofJSON.static JSONArrayJSON.parseArray(InputStream in, JSONReader.Feature... features) Parses the json stream as aJSONArray.static JSONArrayJSON.parseArray(Reader input, JSONReader.Feature... features) Parses the json reader as aJSONArray.static <T> List<T> JSON.parseArray(Reader input, Type type, JSONReader.Feature... features) Parses the json reader as a list ofJSON.static JSONArrayJSON.parseArray(String text, JSONReader.Feature... features) Parses the json string as aJSONArray.static <T> List<T> JSON.parseArray(String text, Class<T> type, JSONReader.Feature... features) Parses the json string as a list ofJSON.static <T> List<T> JSON.parseArray(String text, Type[] types, JSONReader.Feature... features) Parses the json string as a list ofJSON.static <T> List<T> JSON.parseArray(String text, Type type, JSONReader.Feature... features) Parses the json string as a list ofJSON.static JSONArrayJSON.parseArray(URL url, JSONReader.Feature... features) Parses the json stream of the url as aJSONArray.static JSONArrayJSONArray.parseArray(String text, JSONReader.Feature... features) static <T> List<T> JSONArray.parseArray(String text, Class<T> type, JSONReader.Feature... features) static <T> List<T> JSONB.parseArray(byte[] jsonbBytes, Type[] types, JSONReader.Feature... features) Parses JSONB bytes to a list of objects with specified types and featuresstatic <T> List<T> JSONB.parseArray(byte[] jsonbBytes, Type type, JSONReader.Feature... features) Parses JSONB bytes to a list of objects of the specified type with featuresTypeReference.parseArray(byte[] utf8Bytes, JSONReader.Feature... features) SeeJSON.parseArray(byte[], Type, JSONReader.Feature...)for detailsTypeReference.parseArray(String text, JSONReader.Feature... features) SeeJSON.parseArray(String, JSONReader.Feature...)for detailsstatic JSONObjectJSON.parseObject(byte[] bytes, int offset, int length, JSONReader.Feature... features) Parses the json byte array as aJSONObject.static <T> TJSON.parseObject(byte[] bytes, int offset, int length, Type type, JSONReader.Feature... features) Parses the json byte array asJSON.static JSONObjectJSON.parseObject(byte[] bytes, int offset, int length, Charset charset, JSONReader.Feature... features) Parses the json byte array as aJSONObject.static <T> TJSON.parseObject(byte[] bytes, int offset, int length, Charset charset, Class<T> type, JSONReader.Feature... features) Parses the json byte array asJSON.static JSONObjectJSON.parseObject(byte[] bytes, JSONReader.Feature... features) Parses the json byte array as aJSONObject.static <T> TJSON.parseObject(byte[] bytes, Class<T> clazz, Filter filter, JSONReader.Feature... features) Parses the json byte array asJSON.static <T> TJSON.parseObject(byte[] bytes, Class<T> clazz, JSONReader.Feature... features) Parses the json byte array asJSON.static <T> TJSON.parseObject(byte[] bytes, Type type, Filter filter, JSONReader.Feature... features) Parses the json byte array asJSON.static <T> TJSON.parseObject(byte[] bytes, Type type, JSONReader.Feature... features) Parses the json byte array asJSON.static <T> TJSON.parseObject(byte[] bytes, Type type, String format, Filter[] filters, JSONReader.Feature... features) Parses the json byte array asJSON.static <T> TJSON.parseObject(byte[] bytes, Type type, String format, JSONReader.Feature... features) Parses the json byte array asJSON.static JSONObjectJSON.parseObject(char[] chars, int offset, int length, JSONReader.Feature... features) Parses the json chars array as aJSONObject.static <T> TJSON.parseObject(char[] chars, int offset, int length, Type type, JSONReader.Feature... features) Parses the json char array asJSON.static <T> TJSON.parseObject(char[] chars, Class<T> objectClass, JSONReader.Feature... features) Parses the json byte array asJSON.static <T> TJSON.parseObject(char[] chars, Type type, JSONReader.Feature... features) Parses the json byte array asJSON.static JSONObjectJSON.parseObject(InputStream input, JSONReader.Feature... features) Parses the json stream as aJSONObject.static <T> TJSON.parseObject(InputStream input, Type type, JSONReader.Feature... features) Parses the json stream as aJSON.static <T> TJSON.parseObject(InputStream input, Type type, String format, JSONReader.Feature... features) Parses the json stream as aJSON.static <T> voidJSON.parseObject(InputStream input, Type type, Consumer<T> consumer, JSONReader.Feature... features) Parses the json stream through the specified delimiter asJSONobjects and call the specified consumer to consume itstatic <T> voidJSON.parseObject(InputStream input, Charset charset, char delimiter, Type type, Consumer<T> consumer, JSONReader.Feature... features) Parses the json stream through the specified delimiter asJSONobjects and call the specified consumer to consume itstatic <T> TJSON.parseObject(InputStream input, Charset charset, Type type, JSONReader.Feature... features) Parses the json stream as aJSON.static JSONObjectJSON.parseObject(Reader input, JSONReader.Feature... features) Parses the json reader as aJSONObject.static <T> TJSON.parseObject(Reader input, Type type, JSONReader.Feature... features) Parses the json reader as aJSON.static JSONObjectJSON.parseObject(String text, int offset, int length, JSONReader.Feature... features) Parses the json string as aJSONObject.static <T> TJSON.parseObject(String text, int offset, int length, Class<T> clazz, JSONReader.Feature... features) Parses the json string asJSON.static JSONObjectJSON.parseObject(String text, JSONReader.Feature... features) Parses the json string as aJSONObject.static <T> TJSON.parseObject(String text, TypeReference<T> typeReference, Filter filter, JSONReader.Feature... features) Parses the json string asJSON.static <T> TJSON.parseObject(String text, TypeReference<T> typeReference, JSONReader.Feature... features) Parses the json string asJSON.static <T> TJSON.parseObject(String text, Class<T> clazz, Filter filter, JSONReader.Feature... features) Parses the json string asJSON.static <T> TJSON.parseObject(String text, Class<T> clazz, JSONReader.Feature... features) Parses the json string asJSON.static <T> TJSON.parseObject(String text, Class<T> clazz, String format, JSONReader.Feature... features) Parses the json string asJSON.static <T> TJSON.parseObject(String text, Type type, Filter filter, JSONReader.Feature... features) Parses the json string asJSON.static <T> TJSON.parseObject(String text, Type type, JSONReader.Feature... features) Parses the json string asJSON.static <T> TJSON.parseObject(String text, Type type, String format, Filter[] filters, JSONReader.Feature... features) Parses the json string asJSON.static <T> TJSON.parseObject(String text, Type type, String format, JSONReader.Feature... features) Parses the json string asJSON.static <T> TJSON.parseObject(URL url, Class<T> objectClass, JSONReader.Feature... features) Parses the json stream of the url asJSON.static <T> TJSON.parseObject(URL url, Type type, JSONReader.Feature... features) Parses the json stream of the url asJSON.static <T> TJSON.parseObject(URL url, Function<JSONObject, T> function, JSONReader.Feature... features) Parses the json stream of the url as aJSONObjectand call the function to convert it toJSON.static <T> TJSONB.parseObject(byte[] jsonbBytes, int off, int len, Class<T> objectClass, JSONReader.Feature... features) Parses JSONB bytes with offset and length to an object of the specified class with featuresstatic <T> TJSONB.parseObject(byte[] jsonbBytes, int off, int len, 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 featuresstatic <T> TJSONB.parseObject(byte[] jsonbBytes, int off, int len, Type objectType, JSONReader.Feature... features) Parses JSONB bytes with offset and length to an object of the specified type with featuresstatic <T> TJSONB.parseObject(byte[] jsonbBytes, int off, int len, 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 featuresstatic JSONObjectJSONB.parseObject(byte[] jsonbBytes, JSONReader.Feature... features) Parses JSONB bytes to a JSONObject with specified featuresstatic <T> TJSONB.parseObject(byte[] jsonbBytes, TypeReference typeReference, JSONReader.Feature... features) Parses JSONB bytes to an object of the specified type referencestatic <T> TJSONB.parseObject(byte[] jsonbBytes, Class<T> objectClass, Filter filter, JSONReader.Feature... features) Parses JSONB bytes to an object of the specified class with a filter and featuresstatic <T> TJSONB.parseObject(byte[] jsonbBytes, Class<T> objectClass, JSONReader.Feature... features) Parses JSONB bytes to an object of the specified class with featuresstatic <T> TJSONB.parseObject(byte[] jsonbBytes, Type objectClass, JSONReader.Feature... features) Parses JSONB bytes to an object of the specified type with featuresstatic <T> TJSONB.parseObject(byte[] jsonbBytes, 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 featuresstatic <T> TJSONB.parseObject(byte[] jsonbBytes, Type objectType, SymbolTable symbolTable, JSONReader.Feature... features) Parses JSONB bytes to an object of the specified type with a symbol table and featuresstatic <T> TJSONB.parseObject(InputStream in, int length, Type objectType, JSONReader.Feature... features) Parses JSONB from an input stream with specified length to an object of the specified type with featuresstatic <T> TJSONB.parseObject(InputStream in, Class objectClass, JSONReader.Feature... features) Parses JSONB from an input stream to an object of the specified classstatic <T> TJSONB.parseObject(InputStream in, Type objectType, JSONReader.Feature... features) Parses JSONB from an input stream to an object of the specified typestatic <T> TJSONObject.parseObject(String text, TypeReference<T> typeReference, JSONReader.Feature... features) SeeJSON.parseObject(java.lang.String)for detailsstatic <T> TJSONObject.parseObject(String text, Class<T> objectClass, JSONReader.Feature... features) SeeJSON.parseObject(java.lang.String)for detailsstatic <T> TJSONObject.parseObject(String text, Type objectType, JSONReader.Feature... features) SeeJSON.parseObject(java.lang.String)for detailsfinal voidJSONReader.readObject(Object object, JSONReader.Feature... features) abstract voidJSONPath.set(Object object, Object value, JSONReader.Feature... readerFeatures) Sets a value in the object with specified reader featuresvoidJSONPathCompilerReflect.SingleNamePathTyped.set(Object rootObject, Object value, JSONReader.Feature... readerFeatures) <T> TJSONObject.to(TypeReference<T> typeReference, JSONReader.Feature... features) Convert thisJSONObjectto the specified Object<T> TJSONObject.to(Class<T> clazz, JSONReader.Feature... features) Convert thisJSONObjectto the specified Object<T> TJSONObject.to(Type type, JSONReader.Feature... features) Convert thisJSONObjectto the specified ObjectTypeReference.to(JSONObject object, JSONReader.Feature... features) SeeJSONObject.to(Type, JSONReader.Feature...)for details<T> T[]JSONArray.toArray(Class<T> itemClass, JSONReader.Feature... features) Convert all the members of thisJSONArrayinto the specified Object.<T> List<T> JSONArray.toJavaList(Class<T> clazz, JSONReader.Feature... features) Convert all the members of thisJSONArrayinto the specified Object.<T> TJSONObject.toJavaObject(TypeReference<T> typeReference, JSONReader.Feature... features) Deprecated.<T> TJSONObject.toJavaObject(Class<T> clazz, JSONReader.Feature... features) Convert thisJSONObjectto the specified Object<T> TJSONObject.toJavaObject(Type type, JSONReader.Feature... features) Deprecated.since 2.0.4, please useJSONObject.to(Type, JSONReader.Feature...)TypeReference.toJavaObject(JSONObject object, JSONReader.Feature... features) Deprecated.since 2.0.4, please useTypeReference.to(JSONObject, JSONReader.Feature...)<T> List<T> JSONArray.toList(Class<T> itemClass, JSONReader.Feature... features) Convert all the members of thisJSONArrayinto the specified Object.Constructors in com.alibaba.fastjson2 with parameters of type JSONReader.FeatureModifierConstructorDescriptionContext(JSONReader.Feature... features) Creates a new Context with the specified features.Context(ObjectReaderProvider provider, Filter filter, JSONReader.Feature... features) Creates a new Context with the specified object reader provider, filter, and features.Context(ObjectReaderProvider provider, JSONReader.Feature... features) Creates a new Context with the specified object reader provider and features.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.Context(String dateFormat, JSONReader.Feature... features) Creates a new Context with the specified date format and features. -
Uses of JSONReader.Feature in com.alibaba.fastjson2.reader
Methods in com.alibaba.fastjson2.reader with parameters of type JSONReader.FeatureModifier and TypeMethodDescriptiondefault TObjectReader.createInstance(Collection collection, JSONReader.Feature... features) default TObjectReader.createInstance(Map map, JSONReader.Feature... features) Creates an instance of the object type from a map of field values using the specified features.default TObjectReader.readObject(String str, JSONReader.Feature... features) Reads an object from the specified JSON string using the provided features. -
Uses of JSONReader.Feature in com.alibaba.fastjson2.util
Methods in com.alibaba.fastjson2.util with parameters of type JSONReader.FeatureModifier and TypeMethodDescriptionstatic <T> TPropertiesUtils.toJavaObject(Properties properties, ObjectReaderProvider provider, Class<T> clazz, JSONReader.Feature... features)
JSONObject.to(Type, JSONReader.Feature...)