Uses of Class
com.alibaba.fastjson2.JSONObject
Packages that use JSONObject
-
Uses of JSONObject in com.alibaba.fastjson2
Methods in com.alibaba.fastjson2 that return JSONObjectModifier and TypeMethodDescriptionJSONArray.addObject()JSONObject.clone()Chained addition of elementsJSONArray.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.parse(String text, JSONReader.Feature... features) SeeJSON.parse(java.lang.String)for detailsstatic JSONObjectJSON.parseObject(byte[] bytes) Parse UTF8 encoded JSON byte array intoJSONObjectstatic JSONObjectJSON.parseObject(byte[] bytes, int offset, int length, JSONReader.Feature... features) Parse UTF8 encoded JSON byte array intoJSONObjectstatic JSONObjectJSON.parseObject(byte[] bytes, int offset, int length, Charset charset, JSONReader.Feature... features) Parse UTF8 encoded JSON byte array intoJSONObjectstatic JSONObjectJSON.parseObject(byte[] bytes, JSONReader.Feature... features) Parse UTF8 encoded JSON byte array intoJSONObjectstatic JSONObjectJSON.parseObject(char[] chars) Parse JSON char array intoJSONObjectstatic JSONObjectJSON.parseObject(char[] chars, int offset, int length, JSONReader.Feature... features) Parse JSON char array intoJSONObjectstatic JSONObjectJSON.parseObject(InputStream input, JSONReader.Feature... features) Parse UTF8 inputStream into intoJSONObjectstatic JSONObjectJSON.parseObject(InputStream in, Charset charset) Parse UTF8 encoded JSON byte array intoJSONObjectstatic JSONObjectJSON.parseObject(Reader input, JSONReader.Feature... features) Parse Reader into intoJSONObjectstatic JSONObjectJSON.parseObject(String text) Parse JSONStringintoJSONObjectstatic JSONObjectJSON.parseObject(String text, int offset, int length, JSONReader.Feature... features) Parse JSONStringintoJSONObjectstatic JSONObjectJSON.parseObject(String text, JSONReader.Context context) Parse JSONStringintoJSONObjectstatic JSONObjectJSON.parseObject(String text, JSONReader.Feature... features) Parse JSONStringintoJSONObjectstatic JSONObjectJSON.parseObject(URL url) Parse UTF8 encoded JSON byte array intoJSONObjectstatic JSONObjectJSONB.parseObject(byte[] jsonbBytes) static JSONObjectJSONB.parseObject(byte[] jsonbBytes, JSONReader.Feature... features) static JSONObjectJSONObject.parseObject(String text) SeeJSON.parseObject(java.lang.String)for detailsMethods in com.alibaba.fastjson2 with parameters of type JSONObjectModifier and TypeMethodDescriptionTypeReference.to(JSONObject object, JSONReader.Feature... features) Seeto(Type, JSONReader.Feature...)for detailsTypeReference.toJavaObject(JSONObject object, JSONReader.Feature... features) Deprecated.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) Parse UTF8 URL Resource into a Java object with specifiedJSONReader.Features enabled<T> TJSONObject.to(Function<JSONObject, T> function) -
Uses of JSONObject in com.alibaba.fastjson2.schema
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.writer
Methods in com.alibaba.fastjson2.writer that return JSONObject
TypeReference.to(JSONObject, JSONReader.Feature...)