本文整理了Java中com.alibaba.fastjson.JSONArray.set()
方法的一些代码示例,展示了JSONArray.set()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSONArray.set()
方法的具体详情如下:
包路径:com.alibaba.fastjson.JSONArray
类名称:JSONArray
方法名:set
暂无
代码示例来源:origin: ltsopensource/light-task-scheduler
@Override
public Object set(int index, Object element) {
return jsonArray.set(index, element);
}
代码示例来源:origin: alibaba/fastjson
Object valueItem = valueArray.get(y);
if (valueItem == array) {
valueArray.set(i, objArray);
contains = true;
代码示例来源:origin: ltsopensource/light-task-scheduler
@Override
public Object set(int index, Object element) {
return jsonArray.set(index, element);
}
代码示例来源:origin: com.alibaba/fastjson
Object valueItem = valueArray.get(y);
if (valueItem == array) {
valueArray.set(i, objArray);
contains = true;
代码示例来源:origin: com.alibaba/fastjson
public JSONArray fluentSet(int index, Object element) {
set(index, element);
return this;
}
代码示例来源:origin: alibaba/fastjson
array.set(index, value);
代码示例来源:origin: com.alibaba/fastjson
array.set(index, value);
代码示例来源:origin: com.github.ltsopensource/lts-core
@Override
public Object set(int index, Object element) {
return jsonArray.set(index, element);
}
代码示例来源:origin: syhily/elasticsearch-jdbc
@Override
public Object set(int index, Object element) {
return jsonArray.set(index, element);
}
代码示例来源:origin: com.senseidb/sensei-core
_inner.set(index, ((FastJSONObject) value).getInnerJSONObject());
} else if (value instanceof FastJSONArray) {
_inner.set(index, ((FastJSONArray) value).getInnerJSONArray());
} else {
if (value instanceof JSONObject || value instanceof JSONArray) {
+ value);
_inner.set(index, value);
代码示例来源:origin: 7040210/SuperBoot
/**
* 解密JSON数组对象
*
* @param secretKey 密钥
* @param jsonArray JSON数组
* @return
*/
public JSONArray aesJsonArray(String secretKey, JSONArray jsonArray) {
for (int i = 0; i < jsonArray.size(); i++) {
//判断是否为JSON对象
if (jsonArray.get(i) instanceof JSONObject) {
JSONObject jsonObject = jsonArray.getJSONObject(i);
//变更JSON数组对象
jsonArray.set(i, aesJsonObject(secretKey, jsonObject));
} else {
//非JSON对象直接执行解密
jsonArray.set(i, aesDecrypt(secretKey, jsonArray.getString(i)));
}
}
return jsonArray;
}
代码示例来源:origin: org.actframework/act-test
throw E.unexpected("Cannot find embedded object by ID: %s", id);
array.set(i, embedded);
} else if (s.startsWith("ref:")) {
String id = s.substring(4);
array.set(i, theId);
代码示例来源:origin: com.centit.support/centit-utils
((JSONObject)obj).put(ent.getKey().toString(), ent.getValue());
else
jarray.set(key.ind, jsonValue);
}else
jarray.set(key.ind, jsonValue);
内容来源于网络,如有侵权,请联系作者删除!