Uses of Class
com.alibaba.fastjson2.JSONObject
Packages that use JSONObject
Package
Description
-
Uses of JSONObject in com.alibaba.fastjson2
Methods in com.alibaba.fastjson2 that return JSONObjectModifier and TypeMethodDescriptionJSONArray.addObject()JSONObject.clone()Chained addition of elementsstatic JSONObjectSeeJSON.toJSON(java.lang.Object)for detailsstatic JSONObjectJSONObject.from(Object obj, JSONWriter.Feature... writeFeatures) SeeJSON.toJSON(java.lang.Object)for detailsJSONArray.getJSONObject(int index) Returns theJSONObjectat the specified location in thisJSONArray.JSONObject.getJSONObject(String key) Returns theJSONObjectof the associated keys in thisJSONObject.static JSONObjectJSONObject.of()JSONObject jsonObject = JSONObject.of();static JSONObjectPack a pair of key-values asJSONObjectstatic JSONObjectPack two key-value pairs asJSONObjectstatic JSONObjectPack three key-value pairs asJSONObjectstatic JSONObjectJSONObject.of(String k1, Object v1, String k2, Object v2, String k3, Object v3, String k4, Object v4) Pack three key-value pairs asJSONObjectstatic JSONObjectJSONObject.of(String k1, Object v1, String k2, Object v2, String k3, Object v3, String k4, Object v4, String k5, Object v5) Pack three key-value pairs asJSONObjectstatic JSONObjectJSONObject.parse(String text, JSONReader.Feature... features) SeeJSON.parse(java.lang.String)for detailsstatic JSONObjectJSON.parseObject(byte[] bytes) Parses the json byte array as aJSONObject.static JSONObjectJSON.parseObject(byte[] bytes, int offset, int length, JSONReader.Feature... features) Parses the json byte array as aJSONObject.static JSONObjectJSON.parseObject(byte[] bytes, int offset, int length, Charset charset, JSONReader.Feature... features) Parses the json byte array as aJSONObject.static JSONObjectJSON.parseObject(byte[] bytes, JSONReader.Feature... features) Parses the json byte array as aJSONObject.static JSONObjectJSON.parseObject(char[] chars) Parses the json char array as aJSONObject.static JSONObjectJSON.parseObject(char[] chars, int offset, int length, JSONReader.Feature... features) Parses the json chars array as aJSONObject.static JSONObjectJSON.parseObject(InputStream input, JSONReader.Feature... features) Parses the json stream as aJSONObject.static JSONObjectJSON.parseObject(InputStream in, Charset charset) Parses the json stream as aJSONObject.static JSONObjectJSON.parseObject(InputStream input, Charset charset, JSONReader.Context context) Parses the json stream as aJSONObject.static JSONObjectJSON.parseObject(Reader input, JSONReader.Feature... features) Parses the json reader as aJSONObject.static JSONObjectJSON.parseObject(String text) Parses the json string as aJSONObject.static JSONObjectJSON.parseObject(String text, int offset, int length, JSONReader.Context context) Parses the json string as aJSONObject.static JSONObjectJSON.parseObject(String text, int offset, int length, JSONReader.Feature... features) Parses the json string as aJSONObject.static JSONObjectJSON.parseObject(String text, JSONReader.Context context) Parses the json string as aJSONObject.static JSONObjectJSON.parseObject(String text, JSONReader.Feature... features) Parses the json string as aJSONObject.static JSONObjectJSON.parseObject(URL url) Parses the json stream of the url as aJSONObject.static JSONObjectJSONB.parseObject(byte[] jsonbBytes) static JSONObjectJSONB.parseObject(byte[] jsonbBytes, JSONReader.Feature... features) static JSONObjectJSONB.parseObject(InputStream in, JSONReader.Context context) static JSONObjectJSONObject.parseObject(String text) SeeJSON.parseObject(java.lang.String)for detailsfinal JSONObjectJSONReader.readJSONObject()Methods in com.alibaba.fastjson2 with parameters of type JSONObjectModifier and TypeMethodDescriptionprotected final BigDecimalJSONReader.decimal(JSONObject object) TypeReference.to(JSONObject object, JSONReader.Feature... features) Seeto(Type, JSONReader.Feature...)for detailsTypeReference.toJavaObject(JSONObject object, JSONReader.Feature... features) Deprecated.abstract voidJSONWriter.write(JSONObject map) Method parameters in com.alibaba.fastjson2 with type arguments of type JSONObjectModifier and TypeMethodDescription<T> TJSONArray.getObject(int index, Function<JSONObject, T> creator) <T> TJSONObject.getObject(String key, Function<JSONObject, T> creator) 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.<T> TJSONObject.to(Function<JSONObject, T> function) -
Uses of JSONObject in com.alibaba.fastjson2.schema
Methods in com.alibaba.fastjson2.schema that return JSONObjectModifier and TypeMethodDescriptionArraySchema.toJSONObject()BooleanSchema.toJSONObject()IntegerSchema.toJSONObject()JSONSchema.toJSONObject()NumberSchema.toJSONObject()ObjectSchema.toJSONObject()StringSchema.toJSONObject()Methods in com.alibaba.fastjson2.schema with parameters of type JSONObjectModifier and TypeMethodDescriptionstatic JSONSchemaJSONSchema.of(JSONObject input) static JSONSchemaJSONSchema.of(JSONObject input, JSONSchema parent) static JSONSchemaJSONSchema.of(JSONObject input, Class objectClass) Constructors in com.alibaba.fastjson2.schema with parameters of type JSONObjectModifierConstructorDescriptionArraySchema(JSONObject input, JSONSchema root) ObjectSchema(JSONObject input) ObjectSchema(JSONObject input, JSONSchema root) -
Uses of JSONObject in com.alibaba.fastjson2.util
Methods in com.alibaba.fastjson2.util that return types with arguments of type JSONObjectModifier and TypeMethodDescriptionstatic MapMultiValueType<JSONObject>static MapMultiValueType<JSONObject>Methods in com.alibaba.fastjson2.util with parameters of type JSONObjectModifier and TypeMethodDescriptionstatic <T> TTypeUtils.newProxyInstance(Class<T> objectClass, JSONObject object) -
Uses of JSONObject in com.alibaba.fastjson2.writer
Methods in com.alibaba.fastjson2.writer that return JSONObjectModifier and TypeMethodDescriptionObjectWriterAdapter.toJSONObject(T object) ObjectWriterAdapter.toJSONObject(T object, long features)
TypeReference.to(JSONObject, JSONReader.Feature...)