Uses of Class
com.alibaba.fastjson2.JSONObject
-
Packages that use JSONObject Package Description com.alibaba.fastjson2 com.alibaba.fastjson2.schema com.alibaba.fastjson2.util com.alibaba.fastjson2.writer -
-
Uses of JSONObject in com.alibaba.fastjson2
Methods in com.alibaba.fastjson2 that return JSONObject Modifier and Type Method Description JSONObjectJSONArray. addObject()JSONObjectJSONObject. clone()JSONObjectJSONObject. fluentPut(String key, Object value)Chained addition of elementsstatic JSONObjectJSONObject. from(Object obj)SeeJSON.toJSON(java.lang.Object)for detailsstatic JSONObjectJSONObject. from(Object obj, JSONWriter.Feature... writeFeatures)SeeJSON.toJSON(java.lang.Object)for detailsJSONObjectJSONArray. getJSONObject(int index)Returns theJSONObjectat the specified location in thisJSONArray.JSONObjectJSONObject. getJSONObject(String key)Returns theJSONObjectof the associated keys in thisJSONObject.static JSONObjectJSONObject. of()JSONObject jsonObject = JSONObject.of();static JSONObjectJSONObject. of(String key, Object value)Pack a pair of key-values asJSONObjectstatic JSONObjectJSONObject. of(String k1, Object v1, String k2, Object v2)Pack two key-value pairs asJSONObjectstatic JSONObjectJSONObject. of(String k1, Object v1, String k2, Object v2, String k3, Object v3)Pack 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 detailsJSONObjectJSONObject. putObject(String name)JSONObjectJSONReader. readJSONObject()Methods in com.alibaba.fastjson2 with parameters of type JSONObject Modifier and Type Method Description protected BigDecimalJSONReader. decimal(JSONObject object)TTypeReference. to(JSONObject object, JSONReader.Feature... features)Seeto(Type, JSONReader.Feature...)for detailsTTypeReference. toJavaObject(JSONObject object, JSONReader.Feature... features)Deprecated.since 2.0.4, please useTypeReference.to(JSONObject, JSONReader.Feature...)abstract voidJSONWriter. write(JSONObject map)Method parameters in com.alibaba.fastjson2 with type arguments of type JSONObject Modifier and Type Method Description voidJSONObject. forEchArrayObject(String key, Consumer<JSONObject> action)<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 JSONObject Modifier and Type Method Description JSONObjectArraySchema. toJSONObject()JSONObjectBooleanSchema. toJSONObject()JSONObjectIntegerSchema. toJSONObject()JSONObjectJSONSchema. toJSONObject()JSONObjectNumberSchema. toJSONObject()JSONObjectObjectSchema. toJSONObject()JSONObjectStringSchema. toJSONObject()Methods in com.alibaba.fastjson2.schema with parameters of type JSONObject Modifier and Type Method Description static 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 JSONObject Constructor Description ArraySchema(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 JSONObject Modifier and Type Method Description static MapMultiValueType<JSONObject>MapMultiValueType. of(String name, Type type)static MapMultiValueType<JSONObject>MapMultiValueType. of(Map<String,Type> types)Methods in com.alibaba.fastjson2.util with parameters of type JSONObject Modifier and Type Method Description static <T> TTypeUtils. newProxyInstance(Class<T> objectClass, JSONObject object) -
Uses of JSONObject in com.alibaba.fastjson2.writer
Methods in com.alibaba.fastjson2.writer that return JSONObject Modifier and Type Method Description JSONObjectObjectWriterAdapter. toJSONObject(T object)JSONObjectObjectWriterAdapter. toJSONObject(T object, long features)JSONObjectObjectWriterRootName. toJSONObject(T object, long features)
-