| 程序包 | 说明 |
|---|---|
| io.polaris.json.migration |
声明JSON、JSONArray、JSONObject等类,可用于替换Fastjson相关的基础类,底层使用Jackson实现
|
| 限定符和类型 | 方法和说明 |
|---|---|
JSONArray |
JSONArray.addArray() |
static JSONArray |
JSONArray.copyOf(Collection collection) |
JSONArray |
JSONArray.fluentAdd(Object element) |
JSONArray |
JSONArray.fluentAddAll(Collection<?> c) |
JSONArray |
JSONArray.fluentClear() |
JSONArray |
JSONArray.fluentRemove(int index) |
JSONArray |
JSONArray.fluentRemove(Object o) |
JSONArray |
JSONArray.fluentRemoveAll(Collection<?> c) |
JSONArray |
JSONArray.fluentSet(int index,
Object element) |
static JSONArray |
JSONArray.from(Object object) |
JSONArray |
JSONArray.getJSONArray(int index) |
JSONArray |
JSONObject.getJSONArray(String key) |
static JSONArray |
JSONArray.of(Collection collection) |
static JSONArray |
JSONArray.of(List<Object> collection) |
static JSONArray |
JSONArray.of(Object... items) |
static JSONArray |
JSONArray.of(Object item) |
static JSONArray |
JSONArray.parse(String text) |
static JSONArray |
JSON.parseArray(byte[] bytes) |
static JSONArray |
JSON.parseArray(byte[] bytes,
Charset charset) |
static JSONArray |
JSON.parseArray(byte[] bytes,
int offset,
int length) |
static JSONArray |
JSON.parseArray(byte[] bytes,
int offset,
int length,
Charset charset) |
static JSONArray |
JSON.parseArray(char[] chars) |
static JSONArray |
JSON.parseArray(char[] chars,
int offset,
int length) |
static JSONArray |
JSON.parseArray(InputStream in) |
static JSONArray |
JSON.parseArray(InputStream in,
Charset charset) |
static JSONArray |
JSON.parseArray(Reader in) |
static JSONArray |
JSONArray.parseArray(String text) |
static JSONArray |
JSON.parseArray(String text) |
static JSONArray |
JSON.parseArray(String text,
int offset,
int length) |
static JSONArray |
JSON.parseArray(URL url) |
JSONArray |
JSONObject.putArray(String name) |
Copyright © 2025 fossc. All rights reserved.